Class: EY::Serverside::Shell::YieldIO

Inherits:
Object
  • Object
show all
Defined in:
lib/engineyard-serverside/shell/yieldio.rb

Instance Method Summary collapse

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