Sha256: 99e5e01c7a2040e029de233eabb37b3a3c3bad6c4e3cda29d7393544ace90046
Contents?: true
Size: 958 Bytes
Versions: 28
Compression:
Stored size: 958 Bytes
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>unregister (Mongrel::URIClassifier)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre>/** * call-seq: * uc.unregister("/someuri") * * Yep, just removes this uri and it's handler from the trie. */ VALUE URIClassifier_unregister(VALUE self, VALUE uri) { void *handler = NULL; struct tst *tst = NULL; DATA_GET(self, struct tst, tst); handler = tst_delete((unsigned char *)StringValueCStr(uri), tst); if(handler) { rb_hash_delete(rb_ivar_get(self, id_handler_map), uri); return (VALUE)handler; } else { return Qnil; } }</pre> </body> </html>
Version data entries
28 entries across 28 versions & 1 rubygems