Sha256: 42924e5972d71f55b4fa6bb2e3ecaa75674ef59a3598c6674eebf83f74de32b0
Contents?: true
Size: 914 Bytes
Versions: 1
Compression:
Stored size: 914 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>clean (lib/isbn-converter.rb)</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><span class="ruby-comment cmt"># File lib/isbn-converter.rb, line 40</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clean</span>(<span class="ruby-identifier">isbn</span>) <span class="ruby-identifier">isbn</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/[^0-9X]/</span>,<span class="ruby-value str">''</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
isbn-converter-0.1.0 | doc/files/lib/isbn-converter_rb.src/M000003.html |