class ThorExtend::OptionExtender

Public Class Methods

new(klass) click to toggle source
# File lib/ThorExtend.rb, line 5
def initialize(klass)
  @klass = klass
end

Public Instance Methods

command(name) click to toggle source
# File lib/ThorExtend.rb, line 9
def command(name)
  cmd = @klass.commands[name]
  if cmd
    ThorExtend::CommandWrapper.new(cmd)
  else
    nil
  end
end