We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
test
test?
1 parent c3214b8 commit f13b698Copy full SHA for f13b698
1 file changed
ext/urlpattern/src/lib.rs
@@ -335,7 +335,7 @@ fn init(ruby: &Ruby) -> Result<(), Error> {
335
let _error = module.define_error("Error", ruby.exception_standard_error())?;
336
let class = module.define_class("URLPattern", ruby.class_object())?;
337
class.define_singleton_method("new", function!(UrlPattern::new, -2))?;
338
- class.define_method("test", method!(UrlPattern::test, -2))?;
+ class.define_method("test?", method!(UrlPattern::test, -2))?;
339
class.define_method("exec", method!(UrlPattern::exec, -2))?;
340
class.define_method("protocol", method!(UrlPattern::protocol, 0))?;
341
class.define_method("username", method!(UrlPattern::username, 0))?;
0 commit comments