Sha256: f8823da0bab30aeb54943a6cf3cdf72068baa8182ad2b74ab0378203df4e408b
Contents?: true
Size: 613 Bytes
Versions: 5
Compression:
Stored size: 613 Bytes
Contents
function methodPermalinks() { if ($($('#content h1')[0]).text().match(/^Method:/)) return; $('#method_details .signature, #constructor_details .signature, ' + '.method_details .signature, #method_missing_details .signature').each(function() { var id = this.id; var match = id.match(/^(.+?)-(class|instance)_method$/); if (match) { var name = match[1]; var scope = match[2] == "class" ? "." : ":"; var url = window.location.pathname + scope + escape(name); $(this).prepend('<a class="permalink" href="' + url + '">permalink</a>'); } }); } $(methodPermalinks);
Version data entries
5 entries across 5 versions & 2 rubygems