Sha256: 5e3cab90ebc8e4b1ed2dbe3b958b154e9f9a93bd89b124b321894e898e4fdbc9
Contents?: true
Size: 297 Bytes
Versions: 1
Compression:
Stored size: 297 Bytes
Contents
require 'alf' class MarReader < Alf::Reader def each keys = nil each_input_line do |line| decoded = eval(line) if keys.nil? keys = decoded else yield Hash[keys.zip(decoded)] end end end Alf::Reader.register(:mar, [".mar"], self) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alf-0.10.1 | examples/hitradio/mar_reader.rb |