Class: Tickly::Parser::R

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

Overview

Used as an IO wrapper, similar to what Bychar has.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ioObject

Returns the value of attribute io

Returns:

  • (Object)

    the current value of io



8
9
10
# File 'lib/tickly/parser.rb', line 8

def io
  @io
end

Instance Method Details

#read_one_charObject



9
# File 'lib/tickly/parser.rb', line 9

def read_one_char; io.read(1); end