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.

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 class_options(options = nil)
  @class_options ||= from_superclass(:class_options, {})
  build_options(options, @class_options) if options
  @class_options
end