Padrino::Generators::Actions::ClassMethods
Module: Padrino::Generators::Actions::ClassMethods
Overview
Class methods for Thor generators to support the generators and component choices.
Instance Method Summary
-
#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
Tell Padrino that for this Thor::Group it is a necessary task to run. -
#require_arguments? ⇒ Boolean
Return true if we need an arguments for our Thor::Group.
Instance Method Details
#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. Also builds the available_choices hash of which component choices are supported.
#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
Tell Padrino that for this Thor::Group it is a necessary task to run.
#require_arguments? ⇒ Boolean
Return true if we need an arguments for our Thor::Group.
© 2010–2016 Padrino
Licensed under the MIT License.
http://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Generators/Actions/ClassMethods