class Shelley::Command

A command

Public Class Methods

new(method) click to toggle source
# File lib/shelley/registry.rb, line 52
def initialize(method)
  @method = method
end

Public Instance Methods

execute(*args) click to toggle source
# File lib/shelley/registry.rb, line 56
def execute(*args)
  @method.call(*args)
rescue StandardError => msg
  raise CommandError, msg
end