Skip to content

Instantly share code, notes, and snippets.

@headius
Created February 7, 2019 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/0e5e1adb52f0c6cb75a0c62889b799ef to your computer and use it in GitHub Desktop.
Save headius/0e5e1adb52f0c6cb75a0c62889b799ef to your computer and use it in GitHub Desktop.
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