Module: Nocode::Util::Optionable::ClassMethods
- Defined in:
- lib/nocode/util/optionable.rb
Overview
Class-level DSL Methods
Instance Method Summary collapse
- #option(*values) ⇒ Object
- #options ⇒ Object
- #skip_options_evaluation! ⇒ Object
- #skip_options_evaluation? ⇒ Boolean
Instance Method Details
#option(*values) ⇒ Object
34 35 36 |
# File 'lib/nocode/util/optionable.rb', line 34 def option(*values) values.each { |v| << v.to_s } end |
#options ⇒ Object
38 39 40 |
# File 'lib/nocode/util/optionable.rb', line 38 def @options ||= [] end |
#skip_options_evaluation! ⇒ Object
30 31 32 |
# File 'lib/nocode/util/optionable.rb', line 30 def @skip_options_evaluation = true end |
#skip_options_evaluation? ⇒ Boolean
26 27 28 |
# File 'lib/nocode/util/optionable.rb', line 26 def @skip_options_evaluation || false end |