Ecma335::MethodImplRow
Constructors
Instance methods
class
Returns the runtime Class of an object.
1.class # => Int32
"hello".class # => String
Compare it with typeof, which returns the compile-time type of an object:
random_value = rand # => 0.627423
value = random_value < 0.5 ? 1 : "hello"
value # => "hello"
value.class # => String
typeof(value) # => Int32 | String
class_name
Sourcemethod_body
Sourcemethod_body_kind
Sourcemethod_body_name
Sourcemethod_declaration
Sourcemethod_declaration_kind
Sourcemethod_declaration_name
Source