Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Moving Kernel#tap to correct kernel.rb
  • Loading branch information
bjfish committed Apr 4, 2015
1 parent 0e4e50c commit 49dc6b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions truffle/src/main/ruby/core/kernel.rb
Expand Up @@ -38,10 +38,6 @@ def printf(*args)
end
module_function :printf

def tap
yield self
self
end

alias_method :trust, :untaint
alias_method :untrust, :taint
Expand Down
5 changes: 5 additions & 0 deletions truffle/src/main/ruby/core/rubinius/common/kernel.rb
Expand Up @@ -207,4 +207,9 @@ def srand(seed=undefined)
end
module_function :srand

def tap
yield self
self
end

end

0 comments on commit 49dc6b4

Please sign in to comment.