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

#normalise

Methods included from Encoder::FixedLengthRecordEncoder

#encode

Methods included from Decoder::RecordDecoder

#able_to_decode?, #decode

Instance Method Details

#total_length_of_fieldsObject



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