Module: Laminar::Flow::OptionsValidator::ClassMethods

Defined in:
lib/laminar/flow/options_validator.rb

Overview

Add class methods and attributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#option_listObject (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 valid_options(*args)
  @option_list = args.flatten
end