Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/ruby/jruby/kernel/hash.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Hash
def to_proc
hash_self = self
->(key) {hash_self[key]}
proc {|key| hash_self[key]}
end
end

0 comments on commit d433c8e

Please sign in to comment.