Method: Bundler::Thor.method_options
- Defined in:
- lib/bundler/vendor/thor/lib/thor.rb
.method_options(options = nil) ⇒ Object Also known as: options
Declares the options for the next command to be declared.
Parameters
- Hash[Symbol => Object]
-
The hash key is the name of the option and the value
is the type of the option. Can be :string, :array, :hash, :boolean, :numeric or :required (string). If you give a value, the type of the value is used.
121 122 123 124 125 |
# File 'lib/bundler/vendor/thor/lib/thor.rb', line 121 def ( = nil) @method_options ||= {} (, @method_options) if @method_options end |