Class: Attribeauty::Types::Integer
- Inherits:
-
Object
- Object
- Attribeauty::Types::Integer
- Defined in:
- lib/attribeauty/types/integer.rb
Overview
custom integer type
Instance Method Summary collapse
Instance Method Details
#cast(value) ⇒ Object
7 8 9 10 11 |
# File 'lib/attribeauty/types/integer.rb', line 7 def cast(value) return if value.nil? Integer(value) end |