Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Rinda::Tuple#each

each() { |k, v| ... }

Iterate through the tuple, yielding the index or key, and the value, thus ensuring arrays are iterated similarly to hashes.

See also #[] #fetch .new #hash? also in 3.3 · 3.1 · 3.0