method

method_options

ruby latest stable - Class: Bundler::Thor

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

method_options(options = nil)
public

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.