class

Ruby::V4::Struct::Anonymous

Inherits Reference < Object

Constructors

new(member_list : Array(String), vals : Array)
Source

Instance methods

[](index : Int) : Struct::Value
Source
[](name : String) : Struct::Value
Source
[]=(index : Int, v) : Nil
Source
[]=(name : String, v) : Nil
Source
inspect

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.

Source
members
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
values
Source