Sha256: e44f0597ff68ad65c20cc50abc53a9198d6821357c47b63e6c35df0f1b763ca3

Contents?: true

Size: 302 Bytes

Versions: 13

Compression:

Stored size: 302 Bytes

Contents

module DataMapper
  class Property
    class HugeInteger < DataMapper::Property::String
      def load(value)
        value.to_i unless value.nil?
      end

      def dump(value)
        value.to_s unless value.nil?
      end

      def typecast(value)
        load(value)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
ardm-core-1.3.0 spec/support/properties/huge_integer.rb
ardm-core-1.2.1 spec/support/properties/huge_integer.rb
dm-core-1.2.1 spec/support/properties/huge_integer.rb
ghost_dm-core-1.3.0.beta spec/support/properties/huge_integer.rb
dm-core-1.2.0 spec/support/properties/huge_integer.rb
dm-core-1.2.0.rc2 spec/support/properties/huge_integer.rb
dm-core-1.2.0.rc1 spec/support/properties/huge_integer.rb
dm-core-1.1.0 spec/support/properties/huge_integer.rb
dm-core-1.1.0.rc3 spec/support/properties/huge_integer.rb
dm-core-1.1.0.rc2 spec/support/properties/huge_integer.rb
dm-core-1.1.0.rc1 spec/support/properties/huge_integer.rb
dm-core-1.0.2 spec/support/properties/huge_integer.rb
dm-core-1.0.1 spec/support/properties/huge_integer.rb