Module: Dry::Types::Coercions::JSON
- Extended by:
- Dry::Types::Coercions
- Defined in:
- lib/dry/types/coercions/json.rb
Class Method Summary collapse
Methods included from Dry::Types::Coercions
to_date, to_date_time, to_nil, to_time
Class Method Details
.to_decimal(input) ⇒ Object
12 13 14 |
# File 'lib/dry/types/coercions/json.rb', line 12 def self.to_decimal(input) input.to_d unless empty_str?(input) end |