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>

[View source]

457
458
459
460
461
462
463
# File 'lib/bundler/vendor/thor/lib/thor/base.rb', line 457

def group(name = nil)
  if name
    @group = name.to_s
  else
    @group ||= from_superclass(:group, "standard")
  end
end