Module: Avmtrf1::Forponto::Parsers::Espelho::MethodsAsFields
- Included in:
- DayNode, RowsConsumer, SummaryNode
- Defined in:
- lib/avmtrf1/forponto/parsers/espelho/methods_as_fields.rb
Instance Method Summary collapse
Instance Method Details
#data ⇒ Object
14 15 16 |
# File 'lib/avmtrf1/forponto/parsers/espelho/methods_as_fields.rb', line 14 def data methods_as_fields(self.class.const_get('FIELDS')) end |
#methods_as_fields(fields) ⇒ Object
10 11 12 |
# File 'lib/avmtrf1/forponto/parsers/espelho/methods_as_fields.rb', line 10 def methods_as_fields(fields) fields.index_with { |field| send(field) } end |