Add `Hash#to_proc`; CRuby2.3

parent b5dfbce7
......@@ -475,6 +475,10 @@ class Hash
self
end
def to_proc
->x{self[x]}
end
##
# call-seq:
# hsh.fetch_values(key, ...) -> array
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment