class Sail::Types::Integer
The Integer
type manipulates the saved string value into integers.
Public Instance Methods
from(value)
click to toggle source
# File lib/sail/types/integer.rb, line 14 def from(value) value.to_i end
to_value()
click to toggle source
# File lib/sail/types/integer.rb, line 10 def to_value @setting.value.to_i end