Method: ChainOptions::Option#initial_value
- Defined in:
- lib/chain_options/option.rb
#initial_value(value) ⇒ Object
Circumvents the normal value process to set an initial_value. Only works on a
clean option.
66 67 68 69 70 |
# File 'lib/chain_options/option.rb', line 66 def initial_value(value) raise ArgumentError, "The initial_value was already set to #{custom_value.inspect}." if dirty? self.custom_value = value end |