Module: EasyParams::Types::Struct
- Included in:
- Base
- Defined in:
- lib/easy_params/types/struct.rb
Overview
base interface for struct type
Instance Method Summary collapse
Instance Method Details
#array? ⇒ Boolean
7 8 9 |
# File 'lib/easy_params/types/struct.rb', line 7 def array? false end |
#coerce(input) ⇒ Object
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 |