Class: Specjour::RSpec::MarshalableException

Inherits:
Object
  • Object
show all
Defined in:
lib/specjour/rspec/marshalable_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.message = exception.message
  self.backtrace = exception.backtrace
end

Instance Attribute Details

#backtraceObject

Returns the value of attribute backtrace.



3
4
5
# File 'lib/specjour/rspec/marshalable_exception.rb', line 3

def backtrace
  @backtrace
end

#class_nameObject

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

#messageObject

Returns the value of attribute message.



3
4
5
# File 'lib/specjour/rspec/marshalable_exception.rb', line 3

def message
  @message
end

Instance Method Details

#classObject



11
12
13
# File 'lib/specjour/rspec/marshalable_exception.rb', line 11

def class
  @class ||= OpenStruct.new :name => class_name
end

#pending_fixed?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/specjour/rspec/marshalable_exception.rb', line 15

def pending_fixed?
  false
end