Module: Okura::Parser::Base
Instance Method Summary collapse
Instance Method Details
#each(&b) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/okura/parser.rb', line 16 def each &b return Enumerator.new(self) unless b @io.each_line {|line| b.call *parse(line) } end |
#initialize(io) ⇒ Object
10 11 12 |
# File 'lib/okura/parser.rb', line 10 def initialize io @io=io end |