Class: Rawk::InputStream

Inherits:
Object
  • Object
show all
Includes:
Observable
Defined in:
lib/rawk/rawk.rb

Instance Method Summary collapse

Constructor Details

#initialize(io) ⇒ InputStream

Returns a new instance of InputStream.



66
67
68
# File 'lib/rawk/rawk.rb', line 66

def initialize(io)
  @io = io
end

Instance Method Details

#each_lineObject



70
71
72
73
74
75
76
# File 'lib/rawk/rawk.rb', line 70

def each_line
  @io.each_line do |line| 
    changed
    notify_observers
    yield line
  end
end