Sha256: dc308e83868909888ebc5aa49b66f049c0d491b59e3187ef2290b59cfd69cd92
Contents?: true
Size: 241 Bytes
Versions: 1
Compression:
Stored size: 241 Bytes
Contents
module Superstore module Types class IntegerType < Base def cast_value(value) if value.is_a?(String) Integer(value, 10) else Integer(value) end rescue end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
superstore-3.0.0 | lib/superstore/types/integer_type.rb |