Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This works in IRB but I could not get it to output in a browser. The command
- # 'puts' will not output to a browser but with other methods, doing something
- # like '{ |x| x}' usually works but not here.
- hash.each_key { |x| puts x }
- #This works to output to a browser. The output is an array.
- hash.key
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement