Module: Restio::Util::Caster

Defined in:
lib/restio/util/caster.rb,
lib/restio/util/caster/default.rb,
lib/restio/util/caster/generic.rb

Defined Under Namespace

Classes: Default, Generic

Instance Method Summary collapse

Instance Method Details

#rest_caster(caster = nil) ⇒ Object



6
7
8
# File 'lib/restio/util/caster.rb', line 6

def rest_caster caster=nil
  rest.caster = ( caster || :default)
end