Sha256: bef664b90cd985b1128332bf4573db9a36de405670216d0b090cef87731a29f6

Contents?: true

Size: 266 Bytes

Versions: 1

Compression:

Stored size: 266 Bytes

Contents

# frozen_string_literal: true

module Granite
  module Form
    module Types
      class Float < Object
        private

        def typecast(value)
          Float(value)
        rescue ArgumentError, TypeError
          nil
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
granite-form-0.6.0 lib/granite/form/types/float.rb