Class: Symbol

Inherits:
Object show all
Defined in:
lib/ripple/core_ext/casting.rb

Class Method Summary collapse

Class Method Details

.ripple_cast(value) ⇒ Object



24
25
26
27
# File 'lib/ripple/core_ext/casting.rb', line 24

def self.ripple_cast(value)
  return nil if value.blank?
  value.respond_to?(:to_s) && value.to_s.intern or raise Ripple::PropertyTypeMismatch.new(self, value)
end