A hint of Javascript Jun 2, 2015 I’ve found this surprisingly useful: class String def to_proc Proc.new { |x| x[self] } end end [{'a' => 1, 'b' => 2}].map(&'a') # [1] It makes Hashes a bit more like Objects. Please enable JavaScript to view the comments powered by Disqus.