Sha256: 7cc3275cdede1babc3d94686e791824c399574b45eb8a1be7ce0ac87ee7cf5fd
Contents?: true
Size: 290 Bytes
Versions: 6
Compression:
Stored size: 290 Bytes
Contents
module Rasti module Types class Integer < Float class << self private def transform(value) value.to_i end def transformable?(value) !value.is_a?(::String) && value.respond_to?(:to_i) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems