lib/finity/transition.rb
# Internal method to execute a provided action on a given object. The
# action can be a symbol, string, proc or lambda function.
Internal method to execute a provided action on a given object. The
action can be a symbol, string, proc or lambda function.
Internal method to execute a provided action on a given object . The action can be a symbol string proc or lambda function .
def execute object, action
      case action
      when Symbol, String
        object.send action
      when Proc
        action.lambda? and action.call object or object.instance_eval &action
      else
        raise InvalidCallback, 'Only symbols, strings, procs and lambdas ' +
                               'may be passed as callbacks'
      end
    end
def execute object , action case action when Symbol , String object . send action when Proc action . lambda? and action . call object or object . instance_eval & action else raise InvalidCallback , 'Only symbols, strings, procs and lambdas ' + 'may be passed as callbacks' end end
Internal method to execute a provided action on a given object.
Internal method to execute a provided action on a given object .
object
<not_specific>
action
<not_specific>