Sha256: 0de15e37e1f3b29b25843a6f58ca3d1a8bc68805d0a1d1998f683d2c4f74df12
Contents?: true
Size: 200 Bytes
Versions: 2
Compression:
Stored size: 200 Bytes
Contents
# frozen_string_literal: true module Granite module Form module Types class Integer < Float def typecast(value) super.try(:to_i) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
granite-form-0.3.0 | lib/granite/form/types/integer.rb |
granite-form-0.2.0 | lib/granite/form/types/integer.rb |