Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby -w
- require "warning"
- def foo(regexp)
- end
- Warning.ignore(:ambiguous_slash)
- foo /why you do dis/
- # still prints:
- # warningtest.rb:9: warning: ambiguous first argument; put parentheses or a space even after `/' operator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement