Class: WrappingCollection

Inherits:
Object show all
Includes:
FromHash
Defined in:
lib/formula_eval/calculating_collection.rb

Direct Known Subclasses

CalculatingCollection

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



21
22
23
# File 'lib/formula_eval/calculating_collection.rb', line 21

def method_missing(sym,*args,&b)
  coll.send(sym,*args,&b)
end

Instance Attribute Details

#collObject

Returns the value of attribute coll.



19
20
21
# File 'lib/formula_eval/calculating_collection.rb', line 19

def coll
  @coll
end

Instance Method Details

#user_collObject



24
25
26
# File 'lib/formula_eval/calculating_collection.rb', line 24

def user_coll
  coll.user_coll
end