Module: Parceira

Defined in:
lib/parceira.rb,
lib/parceira/reader.rb,
lib/parceira/version.rb

Defined Under Namespace

Classes: Reader

Constant Summary collapse

VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.process(input, options = {}, &block) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/parceira.rb', line 15

def self.process(input, options={}, &block)
  records = Parceira::Reader.new(input, options.symbolize_keys).process!
  if block_given?
    records.each{|record| block.call(record)}
  else
    records
  end
end