Class: WrappingProxy
- Inherits:
-
Object
show all
- Includes:
- FromHash
- Defined in:
- lib/formula_eval.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &b) ⇒ Object
11
12
13
|
# File 'lib/formula_eval.rb', line 11
def method_missing(sym,*args,&b)
WrappingProxy.new(:obj => obj.send(sym,*args,&b).to_wrapped)
end
|
Instance Attribute Details
Returns the value of attribute obj.
9
10
11
|
# File 'lib/formula_eval.rb', line 9
def obj
@obj
end
|
Instance Method Details
#kind_of?(x) ⇒ Boolean
17
18
19
|
# File 'lib/formula_eval.rb', line 17
def kind_of?(x)
obj.kind_of?(x)
end
|
#respond_to?(x) ⇒ Boolean
14
15
16
|
# File 'lib/formula_eval.rb', line 14
def respond_to?(x)
obj.respond_to?(x)
end
|