Sha256: dc3fc13c39e4a7b742d703d424859ae3a5967a676375b4567379c7b7960a3bba

Contents?: true

Size: 144 Bytes

Versions: 1

Compression:

Stored size: 144 Bytes

Contents

GraphQL::FLOAT_TYPE = GraphQL::ScalarType.define do
  name "Float"
  coerce -> (value) do
    value.is_a?(Numeric) ? value.to_f : nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
graphql-0.11.1 lib/graphql/float_type.rb