Class: Kafo::Params::Hash
- Inherits:
-
Kafo::Param
- Object
- Kafo::Param
- Kafo::Params::Hash
- Defined in:
- lib/kafo/params/hash.rb
Instance Attribute Summary
Attributes inherited from Kafo::Param
#condition, #default, #doc, #groups, #module, #name, #value_set
Instance Method Summary collapse
Methods inherited from Kafo::Param
#<=>, #dump_default, #initialize, #module_name, #set_default, #set_value_by_config, #to_s, #unset_value, #valid?, #validation_errors, #value, #visible?
Constructor Details
This class inherits a constructor from Kafo::Param
Instance Method Details
#condition_value ⇒ Object
17 18 19 |
# File 'lib/kafo/params/hash.rb', line 17 def condition_value value.inspect end |
#multivalued? ⇒ Boolean
13 14 15 |
# File 'lib/kafo/params/hash.rb', line 13 def multivalued? true end |
#value=(value) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/kafo/params/hash.rb', line 4 def value=(value) super if @value == ['EMPTY_HASH'] @value = {} else @value = typecast(@value) end end |