alakazam 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alakazam/alakazam.rb +6 -6
- data/lib/alakazam/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 436e1280e0c920d0918fc29f2451c4539e1ac459
|
4
|
+
data.tar.gz: b7750cfc3ad4054b3acc9b96bfae31d156dc08da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d85069fc95a598c8e36b70c59e325a8b55fe4f1284c049a881f298dedfde4ab805541838e82422aeb7b9241298ffeb60df0b616d346cef1e4d853c001b5a8da0
|
7
|
+
data.tar.gz: 2a47986e6d5b728d5d03c549198ca767bf9bfb0537cf58a0ac831d503edaa0e6486e67674ea9c3c4f7d9497a8d5d58282ee86900e29811c1faf5b2ce2fa3fc53
|
data/lib/alakazam/alakazam.rb
CHANGED
@@ -72,20 +72,20 @@ module Alakazam
|
|
72
72
|
if options[:methods].any?
|
73
73
|
options[:methods].each { |method|
|
74
74
|
if observer.respond_to? method
|
75
|
-
observer.send method, things
|
75
|
+
observer.send method, *things
|
76
76
|
elsif observer.singleton_class.respond_to? method
|
77
|
-
observer.singleton_class.send method, things
|
77
|
+
observer.singleton_class.send method, *things
|
78
78
|
elsif observer.respond_to? :"#{method}="
|
79
|
-
observer.send method, things
|
79
|
+
observer.send method, *things
|
80
80
|
end
|
81
81
|
}
|
82
82
|
elsif observer.respond_to? :update
|
83
|
-
observer.update things
|
83
|
+
observer.update *things
|
84
84
|
elsif observer.is_a? Proc
|
85
|
-
observer.call things
|
85
|
+
observer.call *things
|
86
86
|
else
|
87
87
|
options[:methods].each { |method|
|
88
|
-
observer.send(method, things) if observer.respond_to? method
|
88
|
+
observer.send(method, *things) if observer.respond_to? method
|
89
89
|
}
|
90
90
|
end
|
91
91
|
end
|
data/lib/alakazam/version.rb
CHANGED