module ActiveInteraction::Runnable::ClassMethods

Public Instance Methods

new(*) click to toggle source
Calls superclass method
# File lib/active_interaction/concerns/runnable.rb, line 97
def new(*)
  super.tap do |instance|
    {
      :@_interaction_errors => Errors.new(instance),
      :@_interaction_result => nil
    }.each do |symbol, obj|
      instance.instance_variable_set(symbol, obj)
    end
  end
end
run(*args) click to toggle source

@param (see Runnable#initialize)

@return [Runnable]

# File lib/active_interaction/concerns/runnable.rb, line 111
def run(*args)
  new(*args).tap { |instance| instance.send(:run) }
end
run!(*args) click to toggle source

@param (see Runnable#initialize)

@return (see Runnable#run!)

@raise (see Runnable#run!)

# File lib/active_interaction/concerns/runnable.rb, line 120
def run!(*args)
  new(*args).send(:run!)
end