Module: Nocode::Util::Optionable::ClassMethods

Defined in:
lib/nocode/util/optionable.rb

Overview

Class-level DSL Methods

Instance Method Summary collapse

Instance Method Details

#option(*values) ⇒ Object



34
35
36
# File 'lib/nocode/util/optionable.rb', line 34

def option(*values)
  values.each { |v| options << v.to_s }
end

#optionsObject



38
39
40
# File 'lib/nocode/util/optionable.rb', line 38

def options
  @options ||= []
end

#skip_options_evaluation!Object



30
31
32
# File 'lib/nocode/util/optionable.rb', line 30

def skip_options_evaluation!
  @skip_options_evaluation = true
end

#skip_options_evaluation?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/nocode/util/optionable.rb', line 26

def skip_options_evaluation?
  @skip_options_evaluation || false
end