Class: GridFu::Cell
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Cell
constructor
A new instance of Cell.
Methods inherited from Element
Constructor Details
#initialize(*args, &block) ⇒ Cell
Returns a new instance of Cell.
3 4 5 6 7 8 9 |
# File 'lib/grid_fu/cells.rb', line 3 def initialize(*args, &block) self.value = block self.key = args.first if args.first.is_a?(String) or args.first.is_a?(Symbol) # Bypass block evaling: in this case it's not a config but a value formatter super(*args, &nil) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class GridFu::Element