Created
February 7, 2019 16:05
-
-
Save headius/0e5e1adb52f0c6cb75a0c62889b799ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/ruby/stdlib/tracer.rb b/lib/ruby/stdlib/tracer.rb | |
index faafd803f4..0dc6fa8f51 100644 | |
--- a/lib/ruby/stdlib/tracer.rb | |
+++ b/lib/ruby/stdlib/tracer.rb | |
@@ -260,7 +260,7 @@ class Tracer | |
# "Kernel" == klass.to_s | |
# end | |
- def Tracer.add_filter(p = proc) | |
+ def Tracer.add_filter(&p) | |
Single.add_filter(p) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment