Guest User

Untitled

a guest
Oct 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. %w(foo bar).each_with_object({}) { |str, hsh| hsh[str] = str.upcase }
  2. # => {'foo' => 'FOO', 'bar' => 'BAR'}
Add Comment
Please, Sign In to add comment