Sha256: 413e99915f842b6a32eed06a3416f7447a0ae1df789445f6b0bc3d18d59fe861
Contents?: true
Size: 1.7 KB
Versions: 6
Compression:
Stored size: 1.7 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>new (FactoryError)</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/pluginfactory.rb, line 87</span> 87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> ) 88: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span> 89: <span class="ruby-identifier">msg</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">to_s</span>}.<span class="ruby-identifier">join</span> 90: <span class="ruby-keyword kw">super</span>( <span class="ruby-identifier">msg</span> ) 91: <span class="ruby-keyword kw">else</span> 92: <span class="ruby-keyword kw">super</span>( <span class="ruby-identifier">message</span> ) 93: <span class="ruby-keyword kw">end</span> 94: <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
6 entries across 6 versions & 1 rubygems