Exception: Walrat::ContinuationWrapperException
- Inherits:
-
Exception
- Object
- Exception
- Walrat::ContinuationWrapperException
- Defined in:
- lib/walrat/continuation_wrapper_exception.rb
Instance Attribute Summary collapse
-
#continuation ⇒ Object
readonly
Returns the value of attribute continuation.
Instance Method Summary collapse
-
#initialize(continuation) ⇒ ContinuationWrapperException
constructor
A new instance of ContinuationWrapperException.
Constructor Details
#initialize(continuation) ⇒ ContinuationWrapperException
Returns a new instance of ContinuationWrapperException.
29 30 31 32 33 |
# File 'lib/walrat/continuation_wrapper_exception.rb', line 29 def initialize continuation raise ArgumentError, 'nil continuation' if continuation.nil? super self.class.to_s @continuation = continuation end |
Instance Attribute Details
#continuation ⇒ Object (readonly)
Returns the value of attribute continuation.
27 28 29 |
# File 'lib/walrat/continuation_wrapper_exception.rb', line 27 def continuation @continuation end |