Method: DataImp::Parser#process
- Defined in:
- lib/data_imp/parser.rb
#process(input, &block) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/data_imp/parser.rb', line 26 def process input, &block index = 1 input.each do |chunk| hash = parse(chunk) yield hash, index index += 1 end end |