Sha256: 7fb2415153512996388dd97d338cc4e4b64effe76009d960c11fe94a0f3d1ade
Contents?: true
Size: 1.61 KB
Versions: 3
Compression:
Stored size: 1.61 KB
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>join (Lisp::Format::Directives::SkipWhitespace)</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/facet/lisp-format.rb, line 1341</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">join</span>(<span class="ruby-identifier">other</span>) <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">other</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">FormatLiteral</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">colon_mod?</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">sub!</span>(<span class="ruby-regexp re">/^[\s\t]+/</span>, <span class="ruby-value str">''</span>) <span class="ruby-identifier">other</span>[<span class="ruby-value">0</span>,<span class="ruby-value">0</span>] = <span class="ruby-value str">'\n'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">at_mod?</span> <span class="ruby-identifier">other</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
3 entries across 3 versions & 1 rubygems