refr 0.0.2.1 → 0.0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/refr.rb +6 -0
- metadata +1 -1
data/lib/refr.rb
CHANGED
@@ -19,6 +19,12 @@ class Reference < BasicObject
|
|
19
19
|
self.local { :value }
|
20
20
|
end
|
21
21
|
|
22
|
+
BasicObject.instance_methods.each {|meth|
|
23
|
+
tmp, $VERBOSE = $VERBOSE, nil
|
24
|
+
undef_method meth
|
25
|
+
$VERBOSE = tmp
|
26
|
+
}
|
27
|
+
|
22
28
|
def initialize (name, vars)
|
23
29
|
begin
|
24
30
|
@getter = ::Kernel::eval("lambda { #{name} }", vars)
|