Class: CSVBox::Layout
- Inherits:
-
Object
- Object
- CSVBox::Layout
- Defined in:
- lib/csv_box.rb
Instance Method Summary collapse
- #fetch(layout) ⇒ Object
-
#initialize ⇒ Layout
constructor
A new instance of Layout.
- #layout(feature, &block) ⇒ Object
Constructor Details
#initialize ⇒ Layout
Returns a new instance of Layout.
37 38 39 |
# File 'lib/csv_box.rb', line 37 def initialize @featuremap = {} end |
Instance Method Details
#fetch(layout) ⇒ Object
33 34 35 |
# File 'lib/csv_box.rb', line 33 def fetch(layout) @featuremap.fetch(layout) end |
#layout(feature, &block) ⇒ Object
29 30 31 |
# File 'lib/csv_box.rb', line 29 def layout(feature, &block) @featuremap.store(feature, block) end |