Class: DeepTest::ProxyIO::AbstractOutput
- Inherits:
-
Object
- Object
- DeepTest::ProxyIO::AbstractOutput
- Includes:
- CentralCommand::Operation
- Defined in:
- lib/deep_test/proxy_io.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#s ⇒ Object
readonly
Returns the value of attribute s.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #execute ⇒ Object
-
#initialize(s) ⇒ AbstractOutput
constructor
A new instance of AbstractOutput.
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
#s ⇒ Object (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 |
#execute ⇒ Object
51 |
# File 'lib/deep_test/proxy_io.rb', line 51 def execute; stream.write s; end |