O'Reilly logo
  • Ronald Cosentino thinks this is interesting:

calling the keys method on your hash will give you an array of its keys:

From

Cover of Ruby Wizardry

Note

calling the keys merhod on a hash