refr 0.0.3.2 → 0.0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/refr.rb +2 -2
- metadata +1 -1
data/lib/refr.rb
CHANGED
@@ -16,7 +16,7 @@ class Reference < BasicObject
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.[] (value, force=false)
|
19
|
-
if value.
|
19
|
+
if (value.___is_a_reference___ rescue false) && !force
|
20
20
|
value
|
21
21
|
else
|
22
22
|
self.local { :value }
|
@@ -50,5 +50,5 @@ class Reference < BasicObject
|
|
50
50
|
__get_referenced__.__send__(id, *args, &block)
|
51
51
|
end
|
52
52
|
|
53
|
-
def ___is_a_reference___; end
|
53
|
+
def ___is_a_reference___; true; end
|
54
54
|
end
|