Hash
ruby/spec describes 81 methods in core/hash, and Metorex implements 81 of them. The parameters are what Method#parameters answers under Metorex.
Hash#<: implemented, parameters[[:req]]. Returns whether the entries ofselfare a proper subset of the entries ofother:Hash#<=: implemented, parameters[[:req]]. Returns whether the entries ofselfare a subset of the entries ofother:Hash#==: implemented, parameters[[:req]]. Returns whetherselfandobjectare equal.Hash#>: implemented, parameters[[:req]]. Returnstrueif the entries ofselfare a proper superset of the entries ofother_hash,falseotherwise:Hash#>=: implemented, parameters[[:req]]. Returnstrueif the entries ofselfare a superset of the entries ofother_hash,falseotherwise:Hash#[]: implemented, parameters[[:req]]. Searches for a hash key equivalent to the givenkey; see Hash Key Equivalence.Hash.[]: implemented, parameters[[:req, :args]]. Returns a new Hash object populated with the given objects, if any.Hash#[]=: implemented, parameters[[:req], [:req]]. Associates the givenobjectwith the givenkey; returnsobject.Hash.allocate: implemented, parameters[[:req, :args]]. An example calling it.Hash#any?: implemented, parameters[[:rest, :pattern]]. Returnstrueif any element satisfies a given criterion;falseotherwise. An example calling it.Hash#assoc: implemented, parameters[[:req]]. If the givenkeyis found, returns its entry as a 2-element array containing that key and its value: An example calling it.Hash#clear: implemented, parameters[]. Removes all entries fromself; returns emptiedself. An example calling it.Hash#clone: implemented, parameters[[:rest, :args]]. Produces a shallow copy of obj---the instance variables of obj are copied, but not the objects they reference. An example calling it.Hash#compact: implemented, parameters[]. Returns a copy ofselfwith allnil-valued entries removed: An example calling it.Hash#compact!: implemented, parameters[]. Ifselfcontains anynil-valued entries, returnsselfwith allnil-valued entries removed; returnsnilotherwise: An example calling it.Hash#compare_by_identity: implemented, parameters[]. Setsselfto compare keys using identity (rather than mere equality); returnsself: An example calling it.Hash#compare_by_identity?: implemented, parameters[]. Returns whether #compare_by_identity has been called: An example calling it.Hash#deconstruct_keys: implemented, parameters[[:req, :keys]]. An example calling it.Hash#default: implemented, parameters[[:rest]]. Returns the default value for the givenkey. An example calling it.Hash#default=: implemented, parameters[[:req]]. Sets the default value tovalue; returnsvalue:Hash#default_proc: implemented, parameters[]. Returns the default proc forself(see Hash Default): An example calling it.Hash#default_proc=: implemented, parameters[[:req]]. Sets the default proc forselftoproc(see Hash Default):Hash#delete: implemented, parameters[[:req]]. If an entry for the givenkeyis found, deletes the entry and returns its associated value; otherwise returnsnilor calls the given block. An example calling it.Hash#delete_if: implemented, parameters[]. With a block given, calls the block with each key-value pair, deletes each entry for which the block returns a truthy value, and returnsself: An example calling it.Hash#dig: implemented, parameters[[:rest]]. Finds and returns an object found in nested objects, as specified bykeyandidentifiers. An example calling it.Hash#each: implemented, parameters[]. With a block given, calls the block with each key-value pair; returnsself: An example calling it.Hash#each_key: implemented, parameters[]. With a block given, calls the block with each key; returnsself: An example calling it.Hash#each_pair: implemented, parameters[]. With a block given, calls the block with each key-value pair; returnsself: An example calling it.Hash#each_value: implemented, parameters[]. With a block given, calls the block with each value; returnsself: An example calling it.Hash#empty?: implemented, parameters[]. Returnstrueif there are no hash entries,falseotherwise: An example calling it.Hash#eql?: implemented, parameters[[:req]]. Returnstrueif all of the following are true: An example calling it.Hash#except: implemented, parameters[[:rest]]. Returns a copy ofselfthat excludes entries for the givenkeys; anykeysthat are not found are ignored: An example calling it.Hash#fetch: implemented, parameters[[:rest]]. With no block given, returns the value for the givenkey, if found;h = {foo: 0, bar: 1, baz: 2}. An example calling it.Hash#fetch_values: implemented, parameters[[:rest]]. When all givenkeysare found, returns a new array containing the values associated with the givenkeys: An example calling it.Hash#filter: implemented, parameters[[:block, :block]]. With a block given, calls the block with each entry's key and value; returns a new hash whose entries are those for which the block returns a truthy value: An example calling it.Hash#filter!: implemented, parameters[]. With a block given, calls the block with each entry's key and value; removes fromselfeach entry for which the block returnsfalseornil.Hash#flatten: implemented, parameters[[:rest]]. With positive integerdepth, returns a new array that is a recursive flattening ofselfto the givendepth. An example calling it.Hash#has_key?: implemented, parameters[[:req]]. Returns whetherkeyis a key inself: An example calling it.Hash#has_value?: implemented, parameters[[:req]]. Returns whethervalueis a value inself. An example calling it.Hash#hash: implemented, parameters[]. Returns the integer hash-code for the hash. An example calling it.Hash#include?: implemented, parameters[[:req, :wanted]]. Returns whetherkeyis a key inself: An example calling it.Hash#initialize: implemented, parameters[[:rest, :arguments], [:block, :block]]. An example calling it.Hash#inspect: implemented, parameters[]. Returns a new string containing the hash entries: An example calling it.Hash#invert: implemented, parameters[]. Returns a new hash with each key-value pair inverted: An example calling it.Hash#keep_if: implemented, parameters[]. With a block given, calls the block for each key-value pair; retains the entry if the block returns a truthy value; otherwise deletes the entry; returnsself: An example calling it.Hash#key: implemented, parameters[[:req]]. Returns the key for the first-found entry with the givenvalue(see Entry Order): An example calling it.Hash#key?: implemented, parameters[[:req]]. Returns whetherkeyis a key inself: An example calling it.Hash#keys: implemented, parameters[]. Returns a new array containing all keys inself: An example calling it.Hash#length: implemented, parameters[]. Returns the count of entries inself: An example calling it.Hash#member?: implemented, parameters[[:req, :wanted]]. Returns whetherkeyis a key inself: An example calling it.Hash#merge: implemented, parameters[[:rest]]. Each argumentother_hashinother_hashesmust be a hash. An example calling it.Hash#merge!: implemented, parameters[[:rest]]. Updates values and/or adds entries toself; returnsself. An example calling it.Hash.new: implemented, parameters[[:rest]]. Returns a new empty Hash object. An example calling it.Hash#rassoc: implemented, parameters[[:req]]. Searchesselffor the first entry whose value is==to the givenvalue; see Entry Order. An example calling it.Hash#rehash: implemented, parameters[]. Rebuilds the hash table forselfby recomputing the hash index for each key; returnsself.Hash#reject: implemented, parameters[]. With a block given, returns a copy ofselfwith zero or more entries removed; calls the block with each key-value pair; excludes the entry in the copy if the block returns a truthy value, includes it otherwise: An example calling it.Hash#reject!: implemented, parameters[]. With a block given, calls the block with each entry's key and value; removes the entry fromselfif the block returns a truthy value. An example calling it.Hash#replace: implemented, parameters[[:req]]. Replaces the entire contents ofselfwith the contents ofother_hash; returnsself: An example calling it.Hash.ruby2_keywords_hash: implemented, parameters[[:req, :args]]. Duplicates a given hash and adds a ruby2_keywords flag. An example calling it.Hash.ruby2_keywords_hash?: implemented, parameters[[:req, :args]]. Checks if a given hash is flagged by Module#ruby2_keywords (or Proc#ruby2_keywords). An example calling it.Hash#select: implemented, parameters[]. With a block given, calls the block with each entry's key and value; returns a new hash whose entries are those for which the block returns a truthy value: An example calling it.Hash#select!: implemented, parameters[]. With a block given, calls the block with each entry's key and value; removes fromselfeach entry for which the block returnsfalseornil. An example calling it.Hash#shift: implemented, parameters[]. Removes and returns the first entry ofselfas a 2-element array; see Entry Order: An example calling it.Hash#size: implemented, parameters[]. Returns the count of entries inself: An example calling it.Hash#slice: implemented, parameters[[:rest]]. Returns a new hash containing the entries fromselffor the givenkeys; ignores any keys that are not found: An example calling it.Hash#sort: implemented, parameters[[:block, :block]]. Returns an array containing the sorted elements ofself. An example calling it.Hash#store: implemented, parameters[[:req], [:req]]. Associates the givenobjectwith the givenkey; returnsobject. An example calling it.Hash#to_a: implemented, parameters[]. Returns all elements ofselfas an array of 2-element arrays; each nested array contains a key-value pair fromself: An example calling it.Hash#to_h: implemented, parameters[[:rest, :arguments], [:block, :block]]. With a block given, returns a new hash whose content is based on the block; the block is called with each entry's key and value; the block should return a 2-element array containing the key and value to be included in the returned array: An example calling it.Hash#to_hash: implemented, parameters[]. Returnsself. An example calling it.Hash#to_proc: implemented, parameters[]. Returns a Proc object that maps a key to its value: An example calling it.Hash#to_s: implemented, parameters[]. Returns a new string containing the hash entries: An example calling it.Hash#transform_keys: implemented, parameters[[:rest]]. With an argument, a block, or both given, derives a new hashnew_hashfromself, the argument, and/or the block; all, some, or none of its keys may be different from those inself. An example calling it.Hash#transform_keys!: implemented, parameters[[:rest]]. With an argument, a block, or both given, derives keys from the argument, the block, andself; all, some, or none of the keys inselfmay be changed.Hash#transform_values: implemented, parameters[]. With a block given, returns a new hashnew_hash; for each pairkey/valueinself, calls the block withvalueand captures its return asnew_value; adds tonew_hashthe entrykey/new_value: An example calling it.Hash#transform_values!: implemented, parameters[]. With a block given, changes the values ofselfas determined by the block; returnsself. An example calling it.Hash.try_convert: implemented, parameters[[:req, :held]]. Ifobjectis a hash, returnsobject. An example calling it.Hash#update: implemented, parameters[[:rest]]. Updates values and/or adds entries toself; returnsself. An example calling it.Hash#value?: implemented, parameters[[:req]]. Returns whethervalueis a value inself. An example calling it.Hash#values: implemented, parameters[]. Returns a new array containing all values inself: An example calling it.Hash#values_at: implemented, parameters[[:rest]]. Returns a new array containing values for the givenkeys: 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.