Class: CouchPotato::Persistence::TypeCaster

Inherits:
Object
  • Object
show all
Defined in:
lib/couch_potato/persistence/type_caster.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#cast(value, type) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/couch_potato/persistence/type_caster.rb', line 4

def cast(value, type)
  if type == :boolean
    cast_boolean(value)
  else
    cast_native(value, type)
  end
end