Class: ApacheCrunch::IntegerCast
- Inherits:
-
Object
- Object
- ApacheCrunch::IntegerCast
- Defined in:
- lib/cast.rb
Overview
Converts a string to an integer
Instance Method Summary collapse
Instance Method Details
#cast(string_value) ⇒ Object
4 5 6 |
# File 'lib/cast.rb', line 4 def cast(string_value) string_value.to_i end |