Module: Jet::Type::JSON::Matcher
- Defined in:
- lib/jet/type/json.rb
Constant Summary collapse
- SUPPORTED_NUMERICS =
[::BigDecimal, ::Float, ::Integer].freeze
- Numeric =
proc do |input| SUPPORTED_NUMERICS.any? { |type| input.is_a?(type) } end
[::BigDecimal, ::Float, ::Integer].freeze
proc do |input| SUPPORTED_NUMERICS.any? { |type| input.is_a?(type) } end