Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions truffle/src/main/ruby/core/hash.rb
Original file line number Diff line number Diff line change
@@ -432,10 +432,7 @@ def to_hash
end

def to_proc
Proc.new do |key=undefined|
raise ArgumentError, "wrong number of arguments (given 0, expected 1)" if undefined.equal?(key)
self[key]
end
lambda { |key| self[key] }
end

# Implementation of a fundamental Rubinius method that allows their Hash

0 comments on commit 2b41f36

Please sign in to comment.