refr 0.0.3.2 → 0.0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|