Module TypeCast::Object
In: lib/more/facets/typecast.rb

Typecast method extensions for Object class.

Methods

cast_to  

Public Instance methods

Cast an object to another

   1234.cast_to(String)  => "1234"

[Source]

# File lib/more/facets/typecast.rb, line 149
    def cast_to(klass)
      klass.cast_from(self)
    end

[Validate]