Contents

Roo

object.type

Returns the type of this object as a Text object.

object.type as Text

Example

class Person {}

var i = 100
var t = "Thanos"
var n
var p = Person()

i.type # => "Number"
t.type # => "Text"
n.type # => "Nothing"
p.type # => "Person"