Exception: Walrat::ContinuationWrapperException

Inherits:
Exception
  • Object
show all
Defined in:
lib/walrat/continuation_wrapper_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(continuation) ⇒ ContinuationWrapperException

Returns a new instance of ContinuationWrapperException.

Raises:

  • (ArgumentError)


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

#continuationObject (readonly)

Returns the value of attribute continuation.



27
28
29
# File 'lib/walrat/continuation_wrapper_exception.rb', line 27

def continuation
  @continuation
end