Class: SSHKit::Formatter::Abstract
- Inherits:
-
Object
- Object
- SSHKit::Formatter::Abstract
- Extended by:
- Forwardable
- Defined in:
- lib/sshkit/formatters/abstract.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#original_output ⇒ Object
readonly
Returns the value of attribute original_output.
Instance Method Summary collapse
-
#initialize(oio) ⇒ Abstract
constructor
A new instance of Abstract.
- #write(obj) ⇒ Object (also: #<<)
Constructor Details
#initialize(oio) ⇒ Abstract
Returns a new instance of Abstract.
13 14 15 |
# File 'lib/sshkit/formatters/abstract.rb', line 13 def initialize(oio) @original_output = oio end |
Instance Attribute Details
#original_output ⇒ Object (readonly)
Returns the value of attribute original_output.
10 11 12 |
# File 'lib/sshkit/formatters/abstract.rb', line 10 def original_output @original_output end |
Instance Method Details
#write(obj) ⇒ Object Also known as: <<
17 18 19 |
# File 'lib/sshkit/formatters/abstract.rb', line 17 def write(obj) raise "Abstract formatter should not be used directly, maybe you want SSHKit::Formatter::BlackHole" end |