Method: Thor::Base::ClassMethods#class_options
- Defined in:
- lib/thor/base.rb
permalink #class_options(options = nil) ⇒ Object
Adds a bunch of options to the set of class options.
:foo => false, :bar => :required, :baz => :string
If you prefer more detailed declaration, check class_option.
Parameters
Hash[Symbol => Object]
306 307 308 309 310 |
# File 'lib/thor/base.rb', line 306 def ( = nil) @class_options ||= from_superclass(:class_options, {}) (, @class_options) if @class_options end |