rails-multi_block_helpers 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTU1ZTVhOTA4YzQwMjI2OGJjNmVlOWJlYzRlY2I0MWU1ZDA4MTZmZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGMyNzdjZDg0NmNjMjUyZjcyNjY5NjZkMmEwODdiMWY0MGU4ZTI1MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWFmNzliOTYwNTdiYmQxYmY0ZmYzYzhjNDA1NzEyNDIyMGRlOGM4MzU4Y2Vk
|
10
|
+
OTllMWQwOTk3ZmRlMzU4NDY3ZTljNTAyMzM1ZWRmMjUwYjQ5NjY5ZDlkYmYw
|
11
|
+
ZjI1OTk5NDkwZDM3NDFiN2I3OWM4Y2JjOTA1NTUwNDc3YmFlNzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Zjk5NzAzZDc5M2U0ZGI4MDcyYmI0NDhjYjEyMjUzOTg3NTc4NDU0ZjkzN2Rm
|
14
|
+
NmJiZTg5ZjJjNTkwOTRhNzc5ZTk0ZDlkYzRjOGFiM2I4NDY1NmJhNjAwYWFk
|
15
|
+
ZDkyNWY4Y2Y0NmQ3NzJkYzlmMDhmZTM4MGEwMzIwYzk5NDU5MTQ=
|
@@ -24,7 +24,7 @@ module SwitchBlock
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def method_missing(method, *args, &block)
|
27
|
-
if (method.downcase == @x.
|
27
|
+
if (method.to_s.downcase == @x.to_s.downcase or method == :always) or (@called == false and method == :else) then
|
28
28
|
@called = true
|
29
29
|
if args.size > 0 then
|
30
30
|
@ret = args.first.call(*@args)
|