class Sail::Types::Float

Float

The Float type manipulates the saved string value into floats.

Public Instance Methods

from(value) click to toggle source
# File lib/sail/types/float.rb, line 14
def from(value)
  value.to_f
end
to_value() click to toggle source
# File lib/sail/types/float.rb, line 10
def to_value
  @setting.value.to_f
end