ampersand_x 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 +4 -4
- data/lib/ampersand_x.rb +9 -2
- 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: d2aa990a6b516d50ebce87a0da552bc73f660f7c
|
4
|
+
data.tar.gz: 2ef04a1798503e4bc51e4c7b4798b8773d6f04f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 001a54b0a8b6c67854006563bb670105624b295466ee57a1c87c0d6e589a0b54ae2a453ee10d2db107f3cc7cf2ca61e499892e49f87958fc38abd85a2ff18121
|
7
|
+
data.tar.gz: f91e47a15cb18ef5f02e5451958d7ff92ef5547f41460ed38c67683fcab1ca265329a30a162316dc69c97079ae5a52f703b025f770c93736cf843c6788392248
|
data/lib/ampersand_x.rb
CHANGED
@@ -1,13 +1,20 @@
|
|
1
1
|
module AmpersandX
|
2
|
-
VERSION = "0.0.
|
2
|
+
VERSION = "0.0.2"
|
3
|
+
|
4
|
+
UNDEF = [:==]
|
5
|
+
UNDEF_CLASS = UNDEF + [:>, :>=, :<, :<=]
|
3
6
|
|
4
7
|
class Proxy
|
5
8
|
class << self
|
9
|
+
undef_method(*UNDEF_CLASS)
|
10
|
+
|
6
11
|
def method_missing(name, *args)
|
7
|
-
new([name, *args])
|
12
|
+
new([[name, *args]])
|
8
13
|
end
|
9
14
|
end
|
10
15
|
|
16
|
+
undef_method(*UNDEF)
|
17
|
+
|
11
18
|
# Initialize a +Proxy+.
|
12
19
|
#
|
13
20
|
# @param path [Array<Array>] path array
|