Class: Lookout::Output

Inherits:
StringIO
  • Object
show all
Defined in:
lib/lookout/output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expected) ⇒ Output

Returns a new instance of Output.



6
7
8
9
# File 'lib/lookout/output.rb', line 6

def initialize(expected)
  @expected = expected
  super()
end

Instance Attribute Details

#expectedObject (readonly)

Returns the value of attribute expected.



11
12
13
# File 'lib/lookout/output.rb', line 11

def expected
  @expected
end

Instance Method Details

#actualObject



13
14
15
16
# File 'lib/lookout/output.rb', line 13

def actual
  rewind
  @actual ||= read
end

#inspectObject



18
19
20
# File 'lib/lookout/output.rb', line 18

def inspect
  'output(%p)' % expected
end