app/commands/command.rb
# Apply a precondition to given params. A precondition can be either
# a method name or a proc.
Apply a precondition to given params. A precondition can be either
a method name or a proc.
Apply a precondition to given params . A precondition can be either a method name or a proc .
def apply(pre, params)
      if pre.is_a?(Proc)
        pre.call(*params.values_at(*@args))
      else
        send(pre, *params.values_at(*@args))
      end
    end
def apply ( pre , params ) if pre . is_a? ( Proc ) pre . call ( * params . values_at ( * @args ) ) else send ( pre , * params . values_at ( * @args ) ) end end
Apply a precondition to given params.
Apply a precondition to given params .
pre
params