Class: Integer
Class Method Summary collapse
Class Method Details
.ripple_cast(value) ⇒ Object
43 44 45 46 |
# File 'lib/ripple/core_ext/casting.rb', line 43 def self.ripple_cast(value) return nil if value.nil? || (String === value && value.blank?) !value.is_a?(Symbol) && value.respond_to?(:to_i) && value.to_i or raise Ripple::PropertyTypeMismatch.new(self, value) end |