Advertisement
Guest User

Untitled

a guest
May 27th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # This works in IRB but I could not get it to output in a browser. The command
  2. # 'puts' will not output to a browser but with other methods, doing something
  3. # like '{ |x| x}' usually works but not here.
  4. hash.each_key { |x| puts x }
  5.  
  6. #This works to output to a browser. The output is an array.
  7. hash.key
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement