rulp 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/extensions/object_extensions.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDQ0YzRiYzgxZTc3YjdkZjI1ODBiNmVkYWM5ZWQ0YmQ2ZDZjZWE4MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Njg0YmY4M2ZlYTc2Yzg0MjA4NjE3ZWNmZDJkNDczYjkyMGI4Y2I1OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjA0MWU5NjJjMjA0MjZhNWU2MjJkNzg2NmI5YmI2MWU2Mzk1ZDAzNDdlMGEw
|
10
|
+
NWM3YmZkNTFkMzI2MDRhOTJkNjE0OTAzMTVkMmQyMzgzZDgzM2EyNTMwYjlm
|
11
|
+
MmYxNWMxY2RhYzcxNGYyOGY0NWIyZTM4MDZhYWVlOGE1MTYyZGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDc2ZmYzMjI1YTI1NDA3Njg3YWE3MTNhNGZiYjc2YTM4YzRhNTQyNTk5NDAy
|
14
|
+
NmNiOTZmNzY2YjUzZjgwMTFmNzkzZmIwYTE5NDNiZDExODVlNzNhNzU5ZTdh
|
15
|
+
N2QyZjQ0YWRjYmNkOTFiZmI2YTUwMWNjYmE4Y2Y4ZDRiOGI2ZGY=
|
@@ -13,14 +13,14 @@
|
|
13
13
|
class << Object
|
14
14
|
alias_method :old_const_missing, :const_missing
|
15
15
|
def const_missing(value)
|
16
|
-
method_name = "#{value}" rescue ""
|
16
|
+
method_name = "#{value}".split("::")[-1] rescue ""
|
17
17
|
if (("A".."Z").include?(method_name[0]))
|
18
18
|
if(method_name.end_with?("b"))
|
19
|
-
BV.send(method_name[0..(method_name[-2] == "_" ? -3 : -2)])
|
19
|
+
return BV.send(method_name[0..(method_name[-2] == "_" ? -3 : -2)])
|
20
20
|
elsif(method_name.end_with?("i"))
|
21
|
-
IV.send(method_name[0..(method_name[-2] == "_" ? -3 : -2)])
|
21
|
+
return IV.send(method_name[0..(method_name[-2] == "_" ? -3 : -2)])
|
22
22
|
elsif(method_name.end_with?("f"))
|
23
|
-
LV.send(method_name[0..(method_name[-2] == "_" ? -3 : -2)])
|
23
|
+
return LV.send(method_name[0..(method_name[-2] == "_" ? -3 : -2)])
|
24
24
|
end
|
25
25
|
end
|
26
26
|
old_const_missing(value)
|