Exception: Spec::Example::ExamplePendingError
- Defined in:
- lib/spec/example/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#pending_caller ⇒ Object
readonly
Returns the value of attribute pending_caller.
Instance Method Summary collapse
-
#initialize(message = nil, pending_caller = nil) ⇒ ExamplePendingError
constructor
A new instance of ExamplePendingError.
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(=nil, pending_caller=nil) super() @pending_caller = pending_caller || caller[2] end |
Instance Attribute Details
#pending_caller ⇒ Object (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 |