Struct
ruby/spec describes 27 methods in core/struct, and Metorex implements 25 of them. The parameters are what Method#parameters answers under Metorex.
Struct#
Struct#==: implemented, parameters[[:req]]. Returnstrueif and only if the following are true; otherwise returnsfalse:Struct#[]: implemented, parameters[[:req]]. Returns a value fromself.Struct#[]=: implemented, parameters[[:req], [:req]]. Assigns a value to a member.Struct#deconstruct: implemented, parameters[]. Returns the values inselfas an array: An example calling it.Struct#deconstruct_keys: implemented, parameters[[:req]]. Returns a hash of the name/value pairs for the given member names. An example calling it.Struct#dig: implemented, parameters[[:rest]]. Finds and returns an object among nested objects. An example calling it.Struct#each: implemented, parameters[]. Calls the given block with the value of each member; returnsself: An example calling it.Struct#each_pair: implemented, parameters[]. Calls the given block with each member name/value pair; returnsself: An example calling it.Struct#eql?: implemented, parameters[[:req]]. Returnstrueif and only if the following are true; otherwise returnsfalse: An example calling it.Struct#filter: implemented, parameters[[:block, :block]]. With a block given, returns an array of values fromselffor which the block returns a truthy value: An example calling it.Struct#hash: implemented, parameters[]. Returns the integer hash value forself. An example calling it.Struct#initialize: implemented, parameters[[:rest, :values], [:keyrest, :keywords]]. An example calling it.Struct#inspect: implemented, parameters[]. Returns a string representation ofself: An example calling it.Struct#instance_variable_get: implemented, parameters[[:req]]. Returns the value of the given instance variable, or nil if the instance variable is not set. An example calling it.Struct#instance_variables: implemented, parameters[]. Returns an array of instance variable names for the receiver. An example calling it.Struct#length: implemented, parameters[]. Returns the number of members. An example calling it.Struct#members: implemented, parameters[]. Returns the member names fromselfas an array: An example calling it.Struct.new: implemented, parameters[[:rest]].Struct.newreturns a new subclass ofStruct. An example calling it.Struct#select: implemented, parameters[]. With a block given, returns an array of values fromselffor which the block returns a truthy value: An example calling it.Struct#size: implemented, parameters[]. Returns the number of members. An example calling it.Struct#to_a: implemented, parameters[[:rest, :args]]. Returns the values inselfas an array: An example calling it.Struct#to_h: implemented, parameters[[:rest, :arguments], [:block, :block]]. Returns a hash containing the name and value for each member: An example calling it.Struct#to_s: implemented, parameters[]. Returns a string representation ofself: An example calling it.Struct#values: implemented, parameters[]. Returns the values inselfas an array: An example calling it.Struct#values_at: implemented, parameters[[:rest]]. Returns an array of values fromself. An example calling it.
StructClass#
StructClass#keyword_init?: not implemented. An example calling it.StructClass#members: not implemented. An example calling it.
The method summaries are the first sentences of Ruby's own documentation for each method, read from MRI 4.0.6's ri data. Ruby's documentation is distributed under Ruby's license.