Sha256: a9f46f5a040924fedbe350d4cd85d910bc836f3bfae7268f7ec8d5f757650af0
Contents?: true
Size: 234 Bytes
Versions: 2
Compression:
Stored size: 234 Bytes
Contents
module Arstotzka::TypeCast extend ActiveSupport::Concern def to_integer(value) value.to_i if value.present? end def to_string(value) value.to_s end def to_float(value) value.to_f if value.present? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arstotzka-1.0.1 | lib/arstotzka/type_cast.rb |
arstotzka-1.0.0 | lib/arstotzka/type_cast.rb |