Module: Laminar::Flow::OptionsValidator::ClassMethods
- Defined in:
- lib/laminar/flow/options_validator.rb
Overview
Add class methods and attributes.
Instance Attribute Summary collapse
-
#option_list ⇒ Object
readonly
Returns the value of attribute option_list.
Instance Method Summary collapse
-
#valid_options(*args) ⇒ Object
Entry point for defining a flow.
Instance Attribute Details
#option_list ⇒ Object (readonly)
Returns the value of attribute option_list.
16 17 18 |
# File 'lib/laminar/flow/options_validator.rb', line 16 def option_list @option_list end |
Instance Method Details
#valid_options(*args) ⇒ Object
Entry point for defining a flow.
19 20 21 |
# File 'lib/laminar/flow/options_validator.rb', line 19 def (*args) @option_list = args.flatten end |