Class: DeepTest::ProxyIO::AbstractOutput

Inherits:
Object
  • Object
show all
Includes:
CentralCommand::Operation
Defined in:
lib/deep_test/proxy_io.rb

Direct Known Subclasses

Stderr::Output, Stdout::Output

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s) ⇒ AbstractOutput

Returns a new instance of AbstractOutput.



50
# File 'lib/deep_test/proxy_io.rb', line 50

def initialize(s); @s = s; end

Instance Attribute Details

#sObject (readonly)

Returns the value of attribute s.



49
50
51
# File 'lib/deep_test/proxy_io.rb', line 49

def s
  @s
end

Instance Method Details

#==(other) ⇒ Object



52
# File 'lib/deep_test/proxy_io.rb', line 52

def ==(other); self.class == other.class && s == other.s; end

#executeObject



51
# File 'lib/deep_test/proxy_io.rb', line 51

def execute; stream.write s; end