method

coerce_to

Importance_1
coerce_to(obj, cls, meth) public

Helper method to coerce a value into a specific class. Raises a TypeError if the coercion fails or the returned value is not of the right class. (from Rubinius)

Show source
Register or log in to add new notes.