Class: Tickly::Parser::R
- Inherits:
-
Object
- Object
- Tickly::Parser::R
- 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
-
#initialize(bychar) ⇒ R
constructor
:nodoc: :all.
- #read_one_char ⇒ Object
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_char ⇒ Object
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 |