lib/demiurge/action_item.rb
# Cancel the current intention. Raise a NoCurrentIntentionError if there isn't one.
#
# @param reason [String] The reason to cancel
# @param extra_info [Hash] Additional cancellation info, if any
# @return [void]
# @since 0.0.1
Cancel the current intention. Raise a NoCurrentIntentionError if there isn't one.
Cancel the current intention . Raise a NoCurrentIntentionError if there isn ' t one .
def cancel_intention(reason, extra_info = {})
      raise ::Demiurge::Errors::NoCurrentIntentionError.new("No current intention in action of item #{@item.name}!", { "script_item": @item.name },
                                                            execution_context: @item.engine.execution_context) unless @current_intention
      @current_intention.cancel(reason, extra_info)
      nil
    end
def cancel_intention ( reason , extra_info = { } ) raise :: Demiurge :: Errors :: NoCurrentIntentionError . new ( "No current intention in action of item #{@item.name}!" , { "script_item" : @item . name } , execution_context : @item . engine . execution_context ) unless @current_intention @current_intention . cancel ( reason , extra_info ) nil end
Cancel the current intention.
Cancel the current intention .
None
void
reason
The reason to cancel
The reason to cancel
extra_info
Additional cancellation info, if any
Additional cancellation info if any
since
None