Class: Lotus::Helpers::FormHelper::Values
- Inherits:
-
Object
- Object
- Lotus::Helpers::FormHelper::Values
- Defined in:
- lib/lotus/helpers/form_helper/values.rb
Overview
Constant Summary collapse
- GET_SEPARATOR =
'.'.freeze
Instance Method Summary collapse
- #get(key) ⇒ Object
-
#initialize(values, params) ⇒ Values
constructor
A new instance of Values.
Constructor Details
#initialize(values, params) ⇒ Values
Returns a new instance of Values.
9 10 11 12 |
# File 'lib/lotus/helpers/form_helper/values.rb', line 9 def initialize(values, params) @values = Utils::Hash.new(values).stringify! @params = params end |
Instance Method Details
#get(key) ⇒ Object
14 15 16 |
# File 'lib/lotus/helpers/form_helper/values.rb', line 14 def get(key) @params.get(key) || _get_from_values(key) end |