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.
Files changed (2) hide show
  1. data/lib/refr.rb +2 -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.respond_to?(:___is_a_reference___) && !force
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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: refr
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3.2
5
+ version: 0.0.3.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - meh.