Method: Bundler::Thor::Base::ClassMethods#group
- Defined in:
- lib/bundler/vendor/thor/lib/thor/base.rb
#group(name = nil) ⇒ Object
Defines the group. This is used when thor list is invoked so you can specify that only commands from a pre-defined group will be shown. Defaults to standard.
Parameters
name<String|Symbol>
319 320 321 322 323 324 325 |
# File 'lib/bundler/vendor/thor/lib/thor/base.rb', line 319 def group(name = nil) if name @group = name.to_s else @group ||= from_superclass(:group, "standard") end end |