Class: BinData::ChoiceArgProcessor
- Inherits:
-
BaseArgProcessor
- Object
- BaseArgProcessor
- BinData::ChoiceArgProcessor
- Defined in:
- lib/bindata/choice.rb
Instance Method Summary collapse
Methods inherited from BaseArgProcessor
Instance Method Details
#sanitize_parameters!(obj_class, params) ⇒ Object
:nodoc:
125 126 127 128 129 130 131 132 133 |
# File 'lib/bindata/choice.rb', line 125 def sanitize_parameters!(obj_class, params) # :nodoc: params.merge!(obj_class.dsl_params) params.sanitize_choices(:choices) do |choices| hash_choices = choices_as_hash(choices) ensure_valid_keys(hash_choices) hash_choices end end |