Class: ReciteCSV::Header::Definition::Hash::ColumnMethodsBuilder
- Inherits:
-
Module
- Object
- Module
- ReciteCSV::Header::Definition::Hash::ColumnMethodsBuilder
- Defined in:
- lib/recite_csv/header/definition.rb
Instance Method Summary collapse
-
#initialize(raw_definition) ⇒ ColumnMethodsBuilder
constructor
A new instance of ColumnMethodsBuilder.
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 |