Sha256: 285f989c0c3ba739a251a54e0038bf7205b543f7bb29cedca312d5fbf7a9184e

Contents?: true

Size: 148 Bytes

Versions: 1

Compression:

Stored size: 148 Bytes

Contents

module Superstore
  module Types
    class FloatType < Base
      def cast_value(value)
        Float(value) rescue nil
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
superstore-3.0.0 lib/superstore/types/float_type.rb