Class: Float
Class Method Summary collapse
Class Method Details
.ripple_cast(value) ⇒ Object
51 52 53 54 |
# File 'lib/ripple/core_ext/casting.rb', line 51 def self.ripple_cast(value) return nil if value.nil? || (String === value && value.blank?) value.respond_to?(:to_f) && value.to_f or raise Ripple::PropertyTypeMismatch.new(self, value) end |