Class: RHC::Helpers::StringTee

Inherits:
StringIO
  • Object
show all
Defined in:
lib/rhc/helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(other) ⇒ StringTee

Returns a new instance of StringTee.



361
362
363
364
# File 'lib/rhc/helpers.rb', line 361

def initialize(other)
  @tee = other
  super()
end

Instance Attribute Details

#teeObject (readonly)

Returns the value of attribute tee.



360
361
362
# File 'lib/rhc/helpers.rb', line 360

def tee
  @tee
end

Instance Method Details

#<<(buf) ⇒ Object



365
366
367
368
# File 'lib/rhc/helpers.rb', line 365

def <<(buf)
  tee << buf
  super
end