Maintenance Ruby 3.3 gets fixes, but no new features. 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.3.0/lib/rinda/rinda.rb, line 119
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.