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