Class: Tickly::Parser::R

Inherits:
Object
  • Object
show all
Defined in:
lib/tickly/parser.rb

Overview

TODO: this has to go into Bychar. We should not use exprs for flow control.

Instance Method Summary collapse

Constructor Details

#initialize(bychar) ⇒ R

:nodoc: :all



50
51
52
# File 'lib/tickly/parser.rb', line 50

def initialize(bychar)
  @bychar = bychar
end

Instance Method Details

#read_one_charObject



54
55
56
57
58
59
60
# File 'lib/tickly/parser.rb', line 54

def read_one_char
  begin
    c = @bychar.read_one_char!
  rescue Bychar::EOF
    nil
  end
end