Sha256: 66d5429dd64a2219bbe3526fa7d63d104acf27443eecdccef6ed3cf203d65f95
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
module LensProtocol module OMA module Type class R < Base def parse line, message label, values = label_and_values line trcfmt = message.context(:last_trcfmt) or raise ParsingError.new('Could not found a corresponding TRCFMT record', line) values = Trcfmt.number(trcfmt) == 1 ? values.map(&:to_i) : values message.add_record_side_values(label, Trcfmt.side_pos(trcfmt), values) end def format _record, _message [] # Formatted in Type::Trcfmt end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lens_protocol-0.1.2 | lib/lens_protocol/oma/type/r.rb |