Class: Specjour::MarshalableException
- Inherits:
-
Object
- Object
- Specjour::MarshalableException
- Defined in:
- lib/specjour/rspec/marshalable_rspec_failure.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
Returns the value of attribute backtrace.
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
- #class ⇒ Object
-
#initialize(exception) ⇒ MarshalableException
constructor
A new instance of MarshalableException.
Constructor Details
#initialize(exception) ⇒ MarshalableException
Returns a new instance of MarshalableException.
25 26 27 28 29 |
# File 'lib/specjour/rspec/marshalable_rspec_failure.rb', line 25 def initialize(exception) self.class_name = exception.class.name self. = exception. self.backtrace = exception.backtrace end |
Instance Attribute Details
#backtrace ⇒ Object
Returns the value of attribute backtrace.
23 24 25 |
# File 'lib/specjour/rspec/marshalable_rspec_failure.rb', line 23 def backtrace @backtrace end |
#class_name ⇒ Object
Returns the value of attribute class_name.
23 24 25 |
# File 'lib/specjour/rspec/marshalable_rspec_failure.rb', line 23 def class_name @class_name end |
#message ⇒ Object
Returns the value of attribute message.
23 24 25 |
# File 'lib/specjour/rspec/marshalable_rspec_failure.rb', line 23 def @message end |
Instance Method Details
#class ⇒ Object
31 32 33 |
# File 'lib/specjour/rspec/marshalable_rspec_failure.rb', line 31 def class @class ||= OpenStruct.new :name => class_name end |