Class: Object

Inherits:
BasicObject
Defined in:
lib/platypus/typecast.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) to(target_class, specifics = {})

Convert an object to an instance of given target_class.



38
39
40
# File 'lib/platypus/typecast.rb', line 38

def to(target_class, specifics={})
  target_class.from(self, specifics)
end