Class: AttributeExtensions::Typecasting::IntegerTypecaster
- Inherits:
-
Object
- Object
- AttributeExtensions::Typecasting::IntegerTypecaster
- Defined in:
- lib/attribute_extensions/typecasting/integer_typecaster.rb
Instance Method Summary collapse
Instance Method Details
#call(value) ⇒ Object
4 5 6 |
# File 'lib/attribute_extensions/typecasting/integer_typecaster.rb', line 4 def call(value) value.to_i if value.respond_to?(:to_i) end |