Class: CSVBox::Layout

Inherits:
Object
  • Object
show all
Defined in:
lib/csv_box.rb

Instance Method Summary collapse

Constructor Details

#initializeLayout

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