Sha256: a770a7777319afbf753e9ac5b76b2cab36e1705d59667347eacb03297a207846

Contents?: true

Size: 142 Bytes

Versions: 10

Compression:

Stored size: 142 Bytes

Contents

module Compel
  module Coercion

    class Float < Type

      def coerce_value
        Float(value) rescue nil
      end

    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
compel-0.5.1 lib/compel/coercion/types/float.rb
compel-0.5.0 lib/compel/coercion/types/float.rb
compel-0.4.3 lib/compel/coercion/types/float.rb
compel-0.4.2 lib/compel/coercion/types/float.rb
compel-0.4.0 lib/compel/coercion/types/float.rb
compel-0.3.7 lib/compel/coercion/types/float.rb
compel-0.3.6 lib/compel/coercion/types/float.rb
compel-0.3.4 lib/compel/coercion/types/float.rb
compel-0.3.2 lib/compel/coercion/types/float.rb
compel-0.3.1 lib/compel/coercion/types/float.rb