Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Adding Kernel#tap to kernel.rb
  • Loading branch information
bjfish committed Apr 4, 2015
1 parent 67a2ee6 commit 0e4e50c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spec/truffle/tags/core/kernel/tap_tags.txt

This file was deleted.

5 changes: 5 additions & 0 deletions truffle/src/main/ruby/core/kernel.rb
Expand Up @@ -38,6 +38,11 @@ def printf(*args)
end
module_function :printf

def tap
yield self
self
end

alias_method :trust, :untaint
alias_method :untrust, :taint
alias_method :untrusted?, :tainted?
Expand Down

0 comments on commit 0e4e50c

Please sign in to comment.