How to get first 10 items from hash in ruby?

maybe ther is a simpler method for this, but from the top of my head
i'd do it like this:

hashTable.keys[1..10].each { |key| puts hash[key] }

sorry just reread your post. of course it would be like this:

  hashTable.keys[1..10].each { |key| puts "#{key} => #{hash[key]}" }