Class: SSHKit::Formatter::Abstract

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/sshkit/formatters/abstract.rb

Direct Known Subclasses

BlackHole, Dot, Pretty, SimpleText

Instance Attribute Summary collapse

Instance Method Summary collapse

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_outputObject (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