Class: SeeingIsBelieving::Result::Line

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
HasException
Defined in:
lib/seeing_is_believing/result.rb

Instance Attribute Summary

Attributes included from HasException

#exception

Instance Method Summary collapse

Constructor Details

#initializeLine

Returns a new instance of Line.



14
15
16
# File 'lib/seeing_is_believing/result.rb', line 14

def initialize
  @array ||= []
end

Instance Method Details

#==(ary_or_line) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/seeing_is_believing/result.rb', line 18

def ==(ary_or_line)
  if Array === ary_or_line
    @array == ary_or_line
  else
    @array == ary_or_line &&
      has_exception? == ary_or_line.has_exception?
  end
end