Method: EasyParams::Types::Struct#coerce
- Defined in:
- lib/easy_params/types/struct.rb
permalink #coerce(input) ⇒ Object
[View source]
11 12 13 14 15 |
# File 'lib/easy_params/types/struct.rb', line 11 def coerce(input) return if input.blank? self.class.new(input) end |