Contents

Roo

object.to_text

Returns a Text object representation of this object.

object.to_text as Text

Example

class Hero {}

var i = 5
var thor = Hero()

i.to_text # => "5"
thor.to_text # => "<Hero instance>"
Hero.to_text # => "<Hero metaclass>"