Class: SeeingIsBelieving::Result::Line
- Inherits:
-
Object
- Object
- SeeingIsBelieving::Result::Line
- Extended by:
- Forwardable
- Includes:
- HasException
- Defined in:
- lib/seeing_is_believing/result.rb
Instance Attribute Summary
Attributes included from HasException
Instance Method Summary collapse
- #==(ary_or_line) ⇒ Object
-
#initialize ⇒ Line
constructor
A new instance of Line.
Constructor Details
#initialize ⇒ Line
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 |