Class: EY::Serverside::Shell::YieldIO
- Inherits:
-
Object
- Object
- EY::Serverside::Shell::YieldIO
- Defined in:
- lib/engineyard-serverside/shell/yieldio.rb
Instance Method Summary collapse
- #<<(str) ⇒ Object
-
#initialize(&block) ⇒ YieldIO
constructor
A new instance of YieldIO.
Constructor Details
#initialize(&block) ⇒ YieldIO
Returns a new instance of YieldIO.
5 6 7 |
# File 'lib/engineyard-serverside/shell/yieldio.rb', line 5 def initialize(&block) @block = block end |
Instance Method Details
#<<(str) ⇒ Object
8 9 10 |
# File 'lib/engineyard-serverside/shell/yieldio.rb', line 8 def <<(str) @block.call str end |