struct

Ecma335::MethodImplRow

Inherits Struct < Value < Object

Constructors

new(class __arg3 : UInt32, method_body : UInt32, method_declaration : UInt32, class_name : String | Nil = nil, method_body_kind : String = "unknown", method_body_name : String | Nil = nil, method_declaration_kind : String = "unknown", method_declaration_name : String | Nil = nil)
Source

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
Source
class_name
Source
method_body
Source
method_body_kind
Source
method_body_name
Source
method_declaration
Source
method_declaration_kind
Source
method_declaration_name
Source