Module: AsciiDataTools::RecordType::FixedLengthType
- Includes:
- Decoder::FixedLengthRecordDecoder, Encoder::FixedLengthRecordEncoder, Normaliser::Normaliser
- Defined in:
- lib/ascii-data-tools/record_type.rb
Instance Method Summary collapse
Methods included from Normaliser::Normaliser
Methods included from Encoder::FixedLengthRecordEncoder
Methods included from Decoder::RecordDecoder
Instance Method Details
#total_length_of_fields ⇒ Object
16 17 18 |
# File 'lib/ascii-data-tools/record_type.rb', line 16 def total_length_of_fields @total_length ||= fields.inject(0) {|sum, field| sum + field.length} end |