refr 0.0.2.3 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/refr.rb +4 -4
- metadata +1 -1
data/lib/refr.rb
CHANGED
@@ -34,13 +34,13 @@ class Reference < BasicObject
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
def
|
37
|
+
def __get_referenced__
|
38
38
|
@getter.call
|
39
|
-
end; alias ~
|
39
|
+
end; alias ~ __get_referenced__
|
40
40
|
|
41
|
-
def
|
41
|
+
def __set_referenced__ (val)
|
42
42
|
@setter.call(val)
|
43
|
-
end; alias =~
|
43
|
+
end; alias =~ __set_referenced__
|
44
44
|
|
45
45
|
def method_missing (id, *args, &block)
|
46
46
|
__get__.__send__(id, *args, &block)
|