Exception: Spec::Example::ExamplePendingError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/spec/example/errors.rb

Direct Known Subclasses

NotYetImplementedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, pending_caller = nil) ⇒ ExamplePendingError

Returns a new instance of ExamplePendingError.



6
7
8
9
# File 'lib/spec/example/errors.rb', line 6

def initialize(message=nil, pending_caller=nil)
  super(message)
  @pending_caller = pending_caller || caller[2]
end

Instance Attribute Details

#pending_callerObject (readonly)

Returns the value of attribute pending_caller.



4
5
6
# File 'lib/spec/example/errors.rb', line 4

def pending_caller
  @pending_caller
end