Method: Thor::Base::ClassMethods#group
- Defined in:
- 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 tasks from a pre-defined group will be shown. Defaults to standard.
Parameters
name<String|Symbol>
270 271 272 273 274 275 276 277 |
# File 'lib/thor/base.rb', line 270 def group(name=nil) case name when nil @group ||= from_superclass(:group, 'standard') else @group = name.to_s end end |