vendor/bundle/ruby/1.9.1/gems/thor-0.14.6/lib/thor.rb
# Registers another Thor subclass as a command.
#
# ==== Parameters
# klass<Class>:: Thor subclass to register
# command<String>:: Subcommand name to use
# usage<String>:: Short usage for the subcommand
# description<String>:: Description for the subcommand
Registers another Thor subclass as a command.
Registers another Thor subclass as a command .
def register(klass, subcommand_name, usage, description, options={})
      if klass <= Thor::Group
        desc usage, description, options
        define_method(subcommand_name) { invoke klass }
      else
        desc usage, description, options
        subcommand subcommand_name, klass
      end
    end
def register ( klass , subcommand_name , usage , description , options = { } ) if klass <= Thor :: Group desc usage , description , options define_method ( subcommand_name ) { invoke klass } else desc usage , description , options subcommand subcommand_name , klass end end
Registers another Thor subclass as a command.
Registers another Thor subclass as a command .
klass
<not_specific>
subcommand_name
<not_specific>
usage
<not_specific>
description
<not_specific>
options
<not_specific>