Method: Bundler::Thor::Base::ClassMethods#class_options
- Defined in:
- lib/bundler/vendor/thor/lib/thor/base.rb
#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]
251 252 253 254 255 |
# File 'lib/bundler/vendor/thor/lib/thor/base.rb', line 251 def ( = nil) @class_options ||= from_superclass(:class_options, {}) (, @class_options) if @class_options end |