Class: ReciteCSV::Header::Definition::Hash::ColumnMethodsBuilder

Inherits:
Module
  • Object
show all
Defined in:
lib/recite_csv/header/definition.rb

Instance Method Summary collapse

Constructor Details

#initialize(raw_definition) ⇒ ColumnMethodsBuilder

Returns a new instance of ColumnMethodsBuilder.



34
35
36
37
38
39
40
41
42
# File 'lib/recite_csv/header/definition.rb', line 34

def initialize(raw_definition)
  super()

  raw_definition.each_pair do |method_name, header_name|
    define_method method_name do
      self[header_name]
    end
  end
end