Class: Endless::App::DataStream
- Inherits:
-
Object
- Object
- Endless::App::DataStream
- Includes:
- EventMachine::Deferrable
- Defined in:
- lib/endless/app.rb
Instance Method Summary collapse
Instance Method Details
#each(&block) ⇒ Object
12 13 14 |
# File 'lib/endless/app.rb', line 12 def each(&block) @block = block end |
#stream(data) ⇒ Object
8 9 10 |
# File 'lib/endless/app.rb', line 8 def stream(data) @block.call(data) end |