Class methods for Thor generators to support the generators and component choices.
#available_choices_for(component) ⇒ Array<Symbol>
Returns the list of available choices for the given component (including none). #component_option(name, caption, options = {}) ⇒ Object
Defines a class option to allow a component to be chosen and add to component type list. #component_types ⇒ Object
Returns the compiled list of component types which can be specified. #defines_component_options(options = {}) ⇒ Object
Definitions for the available customizable components. #require_arguments! ⇒ Object
Tells Padrino that for this Thor::Group it is a necessary task to run. #require_arguments? ⇒ Boolean
Returns true if we need an arguments for our Thor::Group. Returns the list of available choices for the given component (including none).
Defines a class option to allow a component to be chosen and add to component type list. Also builds the available_choices hash of which component choices are supported.
Returns the compiled list of component types which can be specified.
Definitions for the available customizable components.
Tells Padrino that for this Thor::Group it is a necessary task to run.
Returns true if we need an arguments for our Thor::Group.
© 2010–2019 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Generators/Actions/ClassMethods