Sha256: 98d607a3f6c392d68f89665538a32d4244ddd11fa2841b251f0a7174e952dd3e

Contents?: true

Size: 146 Bytes

Versions: 10

Compression:

Stored size: 146 Bytes

Contents

module Compel
  module Coercion

    class Integer < Type

      def coerce_value
        Integer(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/integer.rb
compel-0.5.0 lib/compel/coercion/types/integer.rb
compel-0.4.3 lib/compel/coercion/types/integer.rb
compel-0.4.2 lib/compel/coercion/types/integer.rb
compel-0.4.0 lib/compel/coercion/types/integer.rb
compel-0.3.7 lib/compel/coercion/types/integer.rb
compel-0.3.6 lib/compel/coercion/types/integer.rb
compel-0.3.4 lib/compel/coercion/types/integer.rb
compel-0.3.2 lib/compel/coercion/types/integer.rb
compel-0.3.1 lib/compel/coercion/types/integer.rb