Class: Rawk::InputStream
- Inherits:
-
Object
- Object
- Rawk::InputStream
- Includes:
- Observable
- Defined in:
- lib/rawk/rawk.rb
Instance Method Summary collapse
- #each_line ⇒ Object
-
#initialize(io) ⇒ InputStream
constructor
A new instance of InputStream.
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_line ⇒ Object
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 |