Class: EchSpec::Err

Inherits:
Object
  • Object
show all
Defined in:
lib/echspec/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details, message_stack) ⇒ Err

Returns a new instance of Err.



17
18
19
20
# File 'lib/echspec/result.rb', line 17

def initialize(details, message_stack)
  @details = details
  @message_stack = message_stack
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



15
16
17
# File 'lib/echspec/result.rb', line 15

def details
  @details
end

#message_stackObject (readonly)

Returns the value of attribute message_stack.



15
16
17
# File 'lib/echspec/result.rb', line 15

def message_stack
  @message_stack
end

Instance Method Details

#deconstructObject



22
23
24
# File 'lib/echspec/result.rb', line 22

def deconstruct
  [@details, @message_stack]
end