End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Rinda::Tuple#init_with_hash
init_with_hash(hash)
lib/rinda/rinda.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rinda/rinda.rb, line 117
def init_with_hash(hash)
@tuple = Hash.new
hash.each do |k, v|
raise InvalidHashTupleKey unless String === k
@tuple[k] = v
end
end
Ensures hash is a valid Tuple.