Class: Specjour::RSpec::MarshalableException
- Inherits:
-
Object
- Object
- Specjour::RSpec::MarshalableException
- Defined in:
- lib/specjour/rspec/marshalable_exception.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.
- #pending_fixed? ⇒ Boolean
Constructor Details
#initialize(exception) ⇒ MarshalableException
Returns a new instance of MarshalableException.
5 6 7 8 9 |
# File 'lib/specjour/rspec/marshalable_exception.rb', line 5 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.
3 4 5 |
# File 'lib/specjour/rspec/marshalable_exception.rb', line 3 def backtrace @backtrace end |
#class_name ⇒ Object
Returns the value of attribute class_name.
3 4 5 |
# File 'lib/specjour/rspec/marshalable_exception.rb', line 3 def class_name @class_name end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/specjour/rspec/marshalable_exception.rb', line 3 def @message end |
Instance Method Details
#class ⇒ Object
11 12 13 |
# File 'lib/specjour/rspec/marshalable_exception.rb', line 11 def class @class ||= OpenStruct.new :name => class_name end |
#pending_fixed? ⇒ Boolean
15 16 17 |
# File 'lib/specjour/rspec/marshalable_exception.rb', line 15 def pending_fixed? false end |