Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated docs

  • Loading branch information...
commit 3d6b4d9c05cd67830e4d0fe6e81b76791a39749b 1 parent 08c9dd1
@delano authored
View
421 classes/SysInfo.html
@@ -1,421 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html lang='en'>
- <head>
- <title>: SysInfo [stella 2.1.0}]</title>
- <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
- <link href='../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
- <script type='text/javascript'>
- //<![CDATA[
- function popupCode(url) {
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
-
- function toggleCode(id) {
- var code = document.getElementById(id)
-
- code.style.display = code.style.display != 'block' ? 'block' : 'none'
- return true
- }
-
- // Make codeblocks hidden by default
- document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
- //]]>
- </script>
- </head>
- <body class='page'>
- <div class='class' id='wrapper'>
- <div class='header'>
- <div class='name'>
- <span class='type'>Class</span>
- SysInfo
- </div>
- <ol class='paths'>
- <li>
- <a href="../files/lib/sysinfo_rb.html">lib/sysinfo.rb</a>
- </li>
- </ol>
- <div class='parent'>
- Parent:
- <strong>Object</strong>
- </div>
- </div>
- <div id='content'>
- <div id='text'>
- <div id='description'>
- <h1><a href="SysInfo.html">SysInfo</a></h1>
- <p>
- A container for the platform specific system information. Portions of this
- code were originally from Amazon&#8217;s EC2 AMI tools, specifically
- lib/platform.rb.
- </p>
- </div>
- <div id='method-list'>
- <h2>Methods</h2>
- <h3>public class</h3>
- <ol>
- <li><a href="#M000001">new</a></li>
- </ol>
- <h3>public instance</h3>
- <ol>
- <li><a href="#M000004">find_hostname</a></li>
- <li><a href="#M000006">find_ipaddress_internal</a></li>
- <li><a href="#M000003">find_network_info</a></li>
- <li><a href="#M000002">find_platform_info</a></li>
- <li><a href="#M000005">find_uptime</a></li>
- <li><a href="#M000010">home</a></li>
- <li><a href="#M000009">paths</a></li>
- <li><a href="#M000007">platform</a></li>
- <li><a href="#M000011">shell</a></li>
- <li><a href="#M000012">tmpdir</a></li>
- <li><a href="#M000008">to_s</a></li>
- </ol>
- </div>
- <div id='section'>
- <div id='constants-list'>
- <h2>Constants</h2>
- <div class='name-list'>
- <table summary='Constants'>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>VERSION</td>
- <td>=</td>
- <td class='context-item-value'>&quot;0.7.3&quot;.freeze</td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>IMPLEMENTATIONS</td>
- <td>=</td>
- <td class='context-item-value'>[ # These are for JRuby, System.getproperty('os.name'). # For a list of all values, see: http://lopica.sourceforge.net/os.html #regexp matcher os implementation [/mac\s*os\s*x/i, :unix, :osx ], [/sunos/i, :unix, :solaris ], [/windows\s*ce/i, :windows, :wince ], [/windows/i, :windows, :windows ], [/osx/i, :unix, :osx ], # These are for RUBY_PLATFORM and JRuby [/java/i, :java, :java ], [/darwin/i, :unix, :osx ], [/linux/i, :unix, :linux ], [/freebsd/i, :unix, :freebsd ], [/netbsd/i, :unix, :netbsd ], [/solaris/i, :unix, :solaris ], [/irix/i, :unix, :irix ], [/cygwin/i, :unix, :cygwin ], [/mswin/i, :windows, :windows ], [/djgpp/i, :windows, :djgpp ], [/mingw/i, :windows, :mingw ], [/bccwin/i, :windows, :bccwin ], [/wince/i, :windows, :wince ], [/vms/i, :vms, :vms ], [/os2/i, :os2, :os2 ], [nil, :unknown, :unknown ], ].freeze</td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>ARCHITECTURES</td>
- <td>=</td>
- <td class='context-item-value'>[ [/(i\d86)/i, :x86 ], [/x86_64/i, :x86_64 ], [/x86/i, :x86 ], # JRuby [/ia64/i, :ia64 ], [/alpha/i, :alpha ], [/sparc/i, :sparc ], [/mips/i, :mips ], [/powerpc/i, :powerpc ], [/universal/i,:x86_64 ], [nil, :unknown ], ].freeze</td>
- </tr>
- </table>
- </div>
- </div>
- <div id='aliases-list'>
- <h2>External Aliases</h2>
- <div class='name-list'>
- <table summary='External aliases'>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>impl</td>
- <td>-&gt;</td>
- <td class='context-item-value'>implementation</td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>arch</td>
- <td>-&gt;</td>
- <td class='context-item-value'>architecture</td>
- </tr>
- </table>
- </div>
- </div>
- <div id='attribute-list'>
- <h2 class='section-bar'>Attributes</h2>
- <div class='name-list'>
- <table>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>arch</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>attr_names</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>home</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>hostname</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>impl</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>ipaddress_internal</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>os</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>paths</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>ruby</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>shell</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>tmpdir</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>uptime</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>user</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- <tr class='top-aligned-row context-row'>
- <td class='context-item-name'>vm</td>
- <td class='context-item-value'>[R]</td>
- <td class='context-item-desc'></td>
- </tr>
- </table>
- </div>
- </div>
- <div id='methods'>
- <h2>Public class methods</h2>
- <div class='method public-class' id='method-M000001'>
- <a name='M000001'> </a>
- <div class='synopsis'>
- <span class='name'>new</span>
- <span class='arguments'>()</span>
- </div>
- <div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000001-source'); return false">
- [show source]
- </a>
- <pre id='M000001-source'><span class="ruby-comment cmt"># File lib/sysinfo.rb, line 76</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>&#x000A; <span class="ruby-ivar">@vm</span>, <span class="ruby-ivar">@os</span>, <span class="ruby-ivar">@impl</span>, <span class="ruby-ivar">@arch</span> = <span class="ruby-identifier">find_platform_info</span>&#x000A; <span class="ruby-ivar">@hostname</span>, <span class="ruby-ivar">@ipaddress_internal</span>, <span class="ruby-ivar">@uptime</span> = <span class="ruby-identifier">find_network_info</span>&#x000A; <span class="ruby-ivar">@ruby</span> = <span class="ruby-constant">RUBY_VERSION</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'.'</span>).<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">to_i</span> }&#x000A; <span class="ruby-ivar">@user</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'USER'</span>]&#x000A; <span class="ruby-identifier">require</span> <span class="ruby-value str">'Win32API'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@os</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:windows</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@vm</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:ruby</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
- <h2>Public instance methods</h2>
- <div class='method public-instance' id='method-M000004'>
- <a name='M000004'> </a>
- <div class='synopsis'>
- <span class='name'>find_hostname</span>
- <span class='arguments'>()</span>
- </div>
- <div class='description'>
- <p>
- Return the hostname for the local machine
- </p>
- </div>
- <div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000004-source'); return false">
- [show source]
- </a>
- <pre id='M000004-source'><span class="ruby-comment cmt"># File lib/sysinfo.rb, line 113</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_hostname</span>; <span class="ruby-constant">Socket</span>.<span class="ruby-identifier">gethostname</span>; <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
- <div class='method public-instance' id='method-M000006'>
- <a name='M000006'> </a>
- <div class='synopsis'>
- <span class='name'>find_ipaddress_internal</span>
- <span class='arguments'>()</span>
- </div>
- <div class='description'>
- <p>
- Return the local IP address which receives external traffic from: <a
- href="http://coderrr.wordpress.com/2008/05/28/get-your-local-ip-address">coderrr.wordpress.com/2008/05/28/get-your-local-ip-address</a>/
- NOTE: This <em>does not</em> open a connection to the IP address.
- </p>
- </div>
- <div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000006-source'); return false">
- [show source]
- </a>
- <pre id='M000006-source'><span class="ruby-comment cmt"># File lib/sysinfo.rb, line 134</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_ipaddress_internal</span>&#x000A; <span class="ruby-comment cmt"># turn off reverse DNS resolution temporarily </span>&#x000A; <span class="ruby-identifier">orig</span>, <span class="ruby-constant">Socket</span>.<span class="ruby-identifier">do_not_reverse_lookup</span> = <span class="ruby-constant">Socket</span>.<span class="ruby-identifier">do_not_reverse_lookup</span>, <span class="ruby-keyword kw">true</span> &#x000A; <span class="ruby-constant">UDPSocket</span>.<span class="ruby-identifier">open</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">connect</span>(<span class="ruby-value str">'65.74.177.129'</span>, <span class="ruby-value">1</span>); <span class="ruby-identifier">s</span>.<span class="ruby-identifier">addr</span>.<span class="ruby-identifier">last</span> } <span class="ruby-comment cmt"># GitHub IP</span>&#x000A; <span class="ruby-keyword kw">ensure</span> &#x000A; <span class="ruby-constant">Socket</span>.<span class="ruby-identifier">do_not_reverse_lookup</span> = <span class="ruby-identifier">orig</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
- <div class='method public-instance' id='method-M000003'>
- <a name='M000003'> </a>
- <div class='synopsis'>
- <span class='name'>find_network_info</span>
- <span class='arguments'>()</span>
- </div>
- <div class='description'>
- <p>
- Returns [hostname, ipaddr (internal), uptime]
- </p>
- </div>
- <div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000003-source'); return false">
- [show source]
- </a>
- <pre id='M000003-source'><span class="ruby-comment cmt"># File lib/sysinfo.rb, line 101</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_network_info</span>&#x000A; <span class="ruby-identifier">hostname</span>, <span class="ruby-identifier">ipaddr</span>, <span class="ruby-identifier">uptime</span> = <span class="ruby-identifier">:unknown</span>, <span class="ruby-identifier">:unknown</span>, <span class="ruby-identifier">:unknown</span>&#x000A; <span class="ruby-keyword kw">begin</span>&#x000A; <span class="ruby-identifier">hostname</span> = <span class="ruby-identifier">find_hostname</span>&#x000A; <span class="ruby-identifier">ipaddr</span> = <span class="ruby-identifier">find_ipaddress_internal</span>&#x000A; <span class="ruby-identifier">uptime</span> = <span class="ruby-identifier">find_uptime</span> &#x000A; <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ex</span> <span class="ruby-comment cmt"># Be silent!</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; [<span class="ruby-identifier">hostname</span>, <span class="ruby-identifier">ipaddr</span>, <span class="ruby-identifier">uptime</span>]&#x000A; <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
- <div class='method public-instance' id='method-M000002'>
- <a name='M000002'> </a>
- <div class='synopsis'>
- <span class='name'>find_platform_info</span>
- <span class='arguments'>()</span>
- </div>
- <div class='description'>
- <p>
- Returns [vm, os, impl, arch]
- </p>
- </div>
- <div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000002-source'); return false">
- [show source]
- </a>
- <pre id='M000002-source'><span class="ruby-comment cmt"># File lib/sysinfo.rb, line 85</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_platform_info</span>&#x000A; <span class="ruby-identifier">vm</span>, <span class="ruby-identifier">os</span>, <span class="ruby-identifier">impl</span>, <span class="ruby-identifier">arch</span> = <span class="ruby-identifier">:ruby</span>, <span class="ruby-identifier">:unknown</span>, <span class="ruby-identifier">:unknown</span>, <span class="ruby-identifier">:unknow</span>&#x000A; <span class="ruby-constant">IMPLEMENTATIONS</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">r</span>, <span class="ruby-identifier">o</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">r</span>&#x000A; <span class="ruby-identifier">os</span>, <span class="ruby-identifier">impl</span> = [<span class="ruby-identifier">o</span>, <span class="ruby-identifier">i</span>]&#x000A; <span class="ruby-keyword kw">break</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-constant">ARCHITECTURES</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">r</span>, <span class="ruby-identifier">a</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">r</span>&#x000A; <span class="ruby-identifier">arch</span> = <span class="ruby-identifier">a</span>&#x000A; <span class="ruby-keyword kw">break</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-identifier">os</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:java</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">guess_java</span> <span class="ruby-operator">:</span> [<span class="ruby-identifier">vm</span>, <span class="ruby-identifier">os</span>, <span class="ruby-identifier">impl</span>, <span class="ruby-identifier">arch</span>]&#x000A; <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
- <div class='method public-instance' id='method-M000005'>
- <a name='M000005'> </a>
- <div class='synopsis'>
- <span class='name'>find_uptime</span>
- <span class='arguments'>()</span>
- </div>
- <div class='description'>
- <p>
- Returns the local uptime in hours. Use Win32API in Windows, &#8216;sysctl
- -b kern.boottime&#8217; os osx, and &#8216;who -b&#8217; on unix. Based on
- Ruby Quiz solutions by: Matthias Reitinger On Windows, see also: net
- statistics server
- </p>
- </div>
- <div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000005-source'); return false">
- [show source]
- </a>
- <pre id='M000005-source'><span class="ruby-comment cmt"># File lib/sysinfo.rb, line 119</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_uptime</span>&#x000A; <span class="ruby-identifier">hours</span> = <span class="ruby-value">0</span>&#x000A; <span class="ruby-keyword kw">begin</span>&#x000A; <span class="ruby-identifier">seconds</span> = <span class="ruby-identifier">execute_platform_specific</span>(<span class="ruby-value str">&quot;find_uptime&quot;</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">hours</span> = <span class="ruby-identifier">seconds</span> <span class="ruby-operator">/</span> <span class="ruby-value">3600</span> <span class="ruby-comment cmt"># seconds to hours</span>&#x000A; <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ex</span>&#x000A; <span class="ruby-comment cmt">#puts ex.message # TODO: implement debug?</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-identifier">hours</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
- <div class='method public-instance' id='method-M000010'>
- <a name='M000010'> </a>
- <div class='synopsis'>
- <span class='name'>home</span>
- <span class='arguments'>()</span>
- </div>
- <div class='description'>
- <p>
- Returns the path to the current user&#8217;s home directory
- </p>
- </div>
- <div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000010-source'); return false">
- [show source]
- </a>
- <pre id='M000010-source'><span class="ruby-comment cmt"># File lib/sysinfo.rb, line 157</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">home</span>; <span class="ruby-identifier">execute_platform_specific</span>(<span class="ruby-identifier">:home</span>); <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
- <div class='method public-instance' id='method-M000009'>
- <a name='M000009'> </a>
- <div class='synopsis'>
- <span class='name'>paths</span>
- <span class='arguments'>()</span>
- </div>
- <div class='description'>
- <p>
- Returns the environment paths as an Array
- </p>
- </div>
- <div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000009-source'); return false">
- [show source]
- </a>
- <pre id='M000009-source'><span class="ruby-comment cmt"># File lib/sysinfo.rb, line 155</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paths</span>; <span class="ruby-identifier">execute_platform_specific</span>(<span class="ruby-identifier">:paths</span>); <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
- <div class='method public-instance' id='method-M000007'>
- <a name='M000007'> </a>
- <div class='synopsis'>
- <span class='name'>platform</span>
- <span class='arguments'>()</span>
- </div>
- <div class='description'>
- <p>
- Returns a Symbol of the short platform descriptor in the format: VM-OS e.g.
- <tt>:java-unix</tt>
- </p>
- </div>
- <div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000007-source'); return false">
- [show source]
- </a>
- <pre id='M000007-source'><span class="ruby-comment cmt"># File lib/sysinfo.rb, line 144</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">platform</span>&#x000A; <span class="ruby-node">&quot;#{@vm}-#{@os}&quot;</span>.<span class="ruby-identifier">to_sym</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
- <div class='method public-instance' id='method-M000011'>
- <a name='M000011'> </a>
- <div class='synopsis'>
- <span class='name'>shell</span>
- <span class='arguments'>()</span>
- </div>
- <div class='description'>
- <p>
- Returns the name of the current shell
- </p>
- </div>
- <div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000011-source'); return false">
- [show source]
- </a>
- <pre id='M000011-source'><span class="ruby-comment cmt"># File lib/sysinfo.rb, line 159</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shell</span>; <span class="ruby-identifier">execute_platform_specific</span>(<span class="ruby-identifier">:shell</span>); <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
- <div class='method public-instance' id='method-M000012'>
- <a name='M000012'> </a>
- <div class='synopsis'>
- <span class='name'>tmpdir</span>
- <span class='arguments'>()</span>
- </div>
- <div class='description'>
- <p>
- Returns the path to the current temp directory
- </p>
- </div>
- <div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000012-source'); return false">
- [show source]
- </a>
- <pre id='M000012-source'><span class="ruby-comment cmt"># File lib/sysinfo.rb, line 161</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tmpdir</span>; <span class="ruby-identifier">execute_platform_specific</span>(<span class="ruby-identifier">:tmpdir</span>); <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
- <div class='method public-instance' id='method-M000008'>
- <a name='M000008'> </a>
- <div class='synopsis'>
- <span class='name'>to_s</span>
- <span class='arguments'>(*args)</span>
- </div>
- <div class='description'>
- <p>
- Returns a String of the full platform descriptor in the format:
- VM-OS-IMPL-ARCH e.g. <tt>java-unix-osx-x86_64</tt>
- </p>
- </div>
- <div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000008-source'); return false">
- [show source]
- </a>
- <pre id='M000008-source'><span class="ruby-comment cmt"># File lib/sysinfo.rb, line 150</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)&#x000A; <span class="ruby-node">&quot;#{@vm}-#{@os}-#{@impl}-#{@arch}&quot;</span>.<span class="ruby-identifier">to_sym</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id='footer-push'></div>
- </div>
- <div id='footer'>
- <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
- </div>
- </body>
-</html>
View
122 classes/Tryouts.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
- <title>: Tryouts [stella 2.1.0}]</title>
+ <title>: Tryouts [stella 2.1.1}]</title>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<link href='../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
<script type='text/javascript'>
@@ -45,18 +45,18 @@ <h1 class='name'>
<h2>Methods</h2>
<h3>public class</h3>
<ol>
- <li><a href="#M000016">cformat</a></li>
- <li><a href="#M000023">debug</a></li>
- <li><a href="#M000014">debug?</a></li>
- <li><a href="#M000022">err</a></li>
- <li><a href="#M000024">eval</a></li>
- <li><a href="#M000021">msg</a></li>
- <li><a href="#M000018">parse</a></li>
- <li><a href="#M000019">print</a></li>
- <li><a href="#M000017">run</a></li>
- <li><a href="#M000015">run_all</a></li>
- <li><a href="#M000013">sysinfo</a></li>
- <li><a href="#M000020">vmsg</a></li>
+ <li><a href="#M000004">cformat</a></li>
+ <li><a href="#M000011">debug</a></li>
+ <li><a href="#M000002">debug?</a></li>
+ <li><a href="#M000010">err</a></li>
+ <li><a href="#M000012">eval</a></li>
+ <li><a href="#M000009">msg</a></li>
+ <li><a href="#M000006">parse</a></li>
+ <li><a href="#M000007">print</a></li>
+ <li><a href="#M000005">run</a></li>
+ <li><a href="#M000003">run_all</a></li>
+ <li><a href="#M000001">sysinfo</a></li>
+ <li><a href="#M000008">vmsg</a></li>
</ol>
</div>
<div id='section'>
@@ -102,160 +102,160 @@ <h2 class='section-bar'>Attributes</h2>
</div>
<div id='methods'>
<h2>Public class methods</h2>
- <div class='method public-class' id='method-M000016'>
- <a name='M000016'> </a>
+ <div class='method public-class' id='method-M000004'>
+ <a name='M000004'> </a>
<div class='synopsis'>
<span class='name'>cformat</span>
<span class='arguments'>(*args)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000016-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000004-source'); return false">
[show source]
</a>
- <pre id='M000016-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 109</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cformat</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">bright</span> <span class="ruby-value str">'%d of %d %s'</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">args</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000004-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 109</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cformat</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">bright</span> <span class="ruby-value str">'%d of %d %s'</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">args</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000023'>
- <a name='M000023'> </a>
+ <div class='method public-class' id='method-M000011'>
+ <a name='M000011'> </a>
<div class='synopsis'>
<span class='name'>debug</span>
<span class='arguments'>(*msg)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000023-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000011-source'); return false">
[show source]
</a>
- <pre id='M000023-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 207</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">debug</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span>&#x000A; <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@debug</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000011-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 207</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">debug</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span>&#x000A; <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@debug</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000014'>
- <a name='M000014'> </a>
+ <div class='method public-class' id='method-M000002'>
+ <a name='M000002'> </a>
<div class='synopsis'>
<span class='name'>debug?</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000014-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000002-source'); return false">
[show source]
</a>
- <pre id='M000014-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 41</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">debug?</span>() <span class="ruby-ivar">@debug</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000002-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 41</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">debug?</span>() <span class="ruby-ivar">@debug</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000022'>
- <a name='M000022'> </a>
+ <div class='method public-class' id='method-M000010'>
+ <a name='M000010'> </a>
<div class='synopsis'>
<span class='name'>err</span>
<span class='arguments'>(*msg)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000022-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000010-source'); return false">
[show source]
</a>
- <pre id='M000022-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 201</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">err</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span>&#x000A; <span class="ruby-identifier">msg</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span> <span class="ruby-identifier">:red</span>, <span class="ruby-identifier">line</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000010-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 201</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">err</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span>&#x000A; <span class="ruby-identifier">msg</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span> <span class="ruby-identifier">:red</span>, <span class="ruby-identifier">line</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000024'>
- <a name='M000024'> </a>
+ <div class='method public-class' id='method-M000012'>
+ <a name='M000012'> </a>
<div class='synopsis'>
<span class='name'>eval</span>
<span class='arguments'>(str, path, line)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000024-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000012-source'); return false">
[show source]
</a>
- <pre id='M000024-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 211</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">path</span>, <span class="ruby-identifier">line</span>)&#x000A; <span class="ruby-keyword kw">begin</span>&#x000A; <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">eval</span> <span class="ruby-identifier">str</span>, <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">:binding</span>), <span class="ruby-identifier">path</span>, <span class="ruby-identifier">line</span>&#x000A; <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SyntaxError</span>, <span class="ruby-constant">LoadError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ex</span>&#x000A; <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">err</span> <span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">:red</span>, <span class="ruby-identifier">ex</span>.<span class="ruby-identifier">message</span>),&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">:red</span>, <span class="ruby-identifier">ex</span>.<span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">first</span>)&#x000A; <span class="ruby-keyword kw">nil</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000012-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 211</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">path</span>, <span class="ruby-identifier">line</span>)&#x000A; <span class="ruby-keyword kw">begin</span>&#x000A; <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">eval</span> <span class="ruby-identifier">str</span>, <span class="ruby-ivar">@container</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">:binding</span>), <span class="ruby-identifier">path</span>, <span class="ruby-identifier">line</span>&#x000A; <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SyntaxError</span>, <span class="ruby-constant">LoadError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ex</span>&#x000A; <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">err</span> <span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">:red</span>, <span class="ruby-identifier">ex</span>.<span class="ruby-identifier">message</span>),&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">:red</span>, <span class="ruby-identifier">ex</span>.<span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">first</span>)&#x000A; <span class="ruby-keyword kw">nil</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000021'>
- <a name='M000021'> </a>
+ <div class='method public-class' id='method-M000009'>
+ <a name='M000009'> </a>
<div class='synopsis'>
<span class='name'>msg</span>
<span class='arguments'>(*msg)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000021-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000009-source'); return false">
[show source]
</a>
- <pre id='M000021-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 197</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">msg</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span>&#x000A; <span class="ruby-constant">STDOUT</span>.<span class="ruby-identifier">puts</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">quiet</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000009-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 197</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">msg</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span>&#x000A; <span class="ruby-constant">STDOUT</span>.<span class="ruby-identifier">puts</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">quiet</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000018'>
- <a name='M000018'> </a>
+ <div class='method public-class' id='method-M000006'>
+ <a name='M000006'> </a>
<div class='synopsis'>
<span class='name'>parse</span>
<span class='arguments'>(path)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000018-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000006-source'); return false">
[show source]
</a>
- <pre id='M000018-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 119</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse</span> <span class="ruby-identifier">path</span>&#x000A; <span class="ruby-comment cmt">#debug &quot;Loading #{path}&quot;</span>&#x000A; <span class="ruby-identifier">lines</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">readlines</span> <span class="ruby-identifier">path</span>&#x000A; <span class="ruby-identifier">skip_ahead</span> = <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">batch</span> = <span class="ruby-constant">TestBatch</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">lines</span>&#x000A; <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">size</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">idx</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-identifier">skip_ahead</span> <span class="ruby-operator">-=</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">and</span> <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">skip_ahead</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">line</span> = <span class="ruby-identifier">lines</span>[<span class="ruby-identifier">idx</span>].<span class="ruby-identifier">chomp</span>&#x000A; <span class="ruby-comment cmt">#debug('%-4d %s' % [idx, line])</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">expectation?</span> <span class="ruby-identifier">line</span>&#x000A; <span class="ruby-identifier">offset</span> = <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">exps</span> = <span class="ruby-constant">Section</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">idx</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>)&#x000A; <span class="ruby-identifier">exps</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>&#x000A; <span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">idx</span><span class="ruby-operator">+</span><span class="ruby-identifier">offset</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">size</span>)&#x000A; <span class="ruby-identifier">offset</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-identifier">this_line</span> = <span class="ruby-identifier">lines</span>[<span class="ruby-identifier">idx</span><span class="ruby-operator">+</span><span class="ruby-identifier">offset</span>]&#x000A; <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ignore?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">expectation?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-identifier">exps</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">this_line</span>.<span class="ruby-identifier">chomp</span>&#x000A; <span class="ruby-identifier">skip_ahead</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-identifier">exps</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">offset</span> = <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">buffer</span>, <span class="ruby-identifier">desc</span> = <span class="ruby-constant">Section</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>), <span class="ruby-constant">Section</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>)&#x000A; <span class="ruby-identifier">test</span> = <span class="ruby-constant">Section</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">idx</span>) <span class="ruby-comment cmt"># test start the line before the exp. </span>&#x000A; <span class="ruby-identifier">blank_buffer</span> = <span class="ruby-constant">Section</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>)&#x000A; <span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">idx</span><span class="ruby-operator">-</span><span class="ruby-identifier">offset</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">0</span>)&#x000A; <span class="ruby-identifier">offset</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-identifier">this_line</span> = <span class="ruby-identifier">lines</span>[<span class="ruby-identifier">idx</span><span class="ruby-operator">-</span><span class="ruby-identifier">offset</span>].<span class="ruby-identifier">chomp</span>&#x000A; <span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-identifier">this_line</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ignore?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">comment?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-identifier">this_line</span> &#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">test?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-identifier">test</span>.<span class="ruby-identifier">unshift</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">buffer</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">clear</span>&#x000A; <span class="ruby-identifier">test</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-identifier">this_line</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">test_begin?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">test_begin?</span>(<span class="ruby-identifier">lines</span>[<span class="ruby-identifier">idx</span><span class="ruby-operator">-</span>(<span class="ruby-identifier">offset</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>)].<span class="ruby-identifier">chomp</span>)&#x000A; <span class="ruby-identifier">offset</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-identifier">lines</span>[<span class="ruby-identifier">idx</span><span class="ruby-operator">-</span><span class="ruby-identifier">offset</span>].<span class="ruby-identifier">chomp</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">test_begin?</span>(<span class="ruby-identifier">this_line</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">idx</span><span class="ruby-operator">-</span><span class="ruby-identifier">offset</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">expectation?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-identifier">adjust</span> = <span class="ruby-identifier">expectation?</span>(<span class="ruby-identifier">this_line</span>) <span class="ruby-operator">?</span> <span class="ruby-value">2</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-identifier">test</span>.<span class="ruby-identifier">first</span> = <span class="ruby-identifier">idx</span><span class="ruby-operator">-</span><span class="ruby-identifier">offset</span><span class="ruby-operator">+</span><span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">+</span><span class="ruby-identifier">adjust</span>&#x000A; <span class="ruby-identifier">desc</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-operator">*</span><span class="ruby-identifier">buffer</span>&#x000A; <span class="ruby-identifier">desc</span>.<span class="ruby-identifier">last</span> = <span class="ruby-identifier">test</span>.<span class="ruby-identifier">first</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>&#x000A; <span class="ruby-identifier">desc</span>.<span class="ruby-identifier">first</span> = <span class="ruby-identifier">desc</span>.<span class="ruby-identifier">last</span><span class="ruby-operator">-</span><span class="ruby-identifier">desc</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>&#x000A; <span class="ruby-comment cmt"># remove empty lines between the description </span>&#x000A; <span class="ruby-comment cmt"># and the previous expectation</span>&#x000A; <span class="ruby-keyword kw">while</span> <span class="ruby-operator">!</span><span class="ruby-identifier">desc</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">desc</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">empty?</span> &#x000A; <span class="ruby-identifier">desc</span>.<span class="ruby-identifier">shift</span>&#x000A; <span class="ruby-identifier">desc</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">break</span> &#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">batch</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">TestCase</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">desc</span>, <span class="ruby-identifier">test</span>, <span class="ruby-identifier">exps</span>)&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">batch</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000006-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 119</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse</span> <span class="ruby-identifier">path</span>&#x000A; <span class="ruby-comment cmt">#debug &quot;Loading #{path}&quot;</span>&#x000A; <span class="ruby-identifier">lines</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">readlines</span> <span class="ruby-identifier">path</span>&#x000A; <span class="ruby-identifier">skip_ahead</span> = <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">batch</span> = <span class="ruby-constant">TestBatch</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">lines</span>&#x000A; <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">size</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">idx</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-identifier">skip_ahead</span> <span class="ruby-operator">-=</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">and</span> <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">skip_ahead</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">line</span> = <span class="ruby-identifier">lines</span>[<span class="ruby-identifier">idx</span>].<span class="ruby-identifier">chomp</span>&#x000A; <span class="ruby-comment cmt">#debug('%-4d %s' % [idx, line])</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">expectation?</span> <span class="ruby-identifier">line</span>&#x000A; <span class="ruby-identifier">offset</span> = <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">exps</span> = <span class="ruby-constant">Section</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">idx</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>)&#x000A; <span class="ruby-identifier">exps</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>&#x000A; <span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">idx</span><span class="ruby-operator">+</span><span class="ruby-identifier">offset</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">size</span>)&#x000A; <span class="ruby-identifier">offset</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-identifier">this_line</span> = <span class="ruby-identifier">lines</span>[<span class="ruby-identifier">idx</span><span class="ruby-operator">+</span><span class="ruby-identifier">offset</span>]&#x000A; <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ignore?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">expectation?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-identifier">exps</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">this_line</span>.<span class="ruby-identifier">chomp</span>&#x000A; <span class="ruby-identifier">skip_ahead</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-identifier">exps</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">offset</span> = <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">buffer</span>, <span class="ruby-identifier">desc</span> = <span class="ruby-constant">Section</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>), <span class="ruby-constant">Section</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>)&#x000A; <span class="ruby-identifier">test</span> = <span class="ruby-constant">Section</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">idx</span>) <span class="ruby-comment cmt"># test start the line before the exp. </span>&#x000A; <span class="ruby-identifier">blank_buffer</span> = <span class="ruby-constant">Section</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>)&#x000A; <span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">idx</span><span class="ruby-operator">-</span><span class="ruby-identifier">offset</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">0</span>)&#x000A; <span class="ruby-identifier">offset</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-identifier">this_line</span> = <span class="ruby-identifier">lines</span>[<span class="ruby-identifier">idx</span><span class="ruby-operator">-</span><span class="ruby-identifier">offset</span>].<span class="ruby-identifier">chomp</span>&#x000A; <span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-identifier">this_line</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ignore?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">comment?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-identifier">this_line</span> &#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">test?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-identifier">test</span>.<span class="ruby-identifier">unshift</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">buffer</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">clear</span>&#x000A; <span class="ruby-identifier">test</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-identifier">this_line</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">test_begin?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">test_begin?</span>(<span class="ruby-identifier">lines</span>[<span class="ruby-identifier">idx</span><span class="ruby-operator">-</span>(<span class="ruby-identifier">offset</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>)].<span class="ruby-identifier">chomp</span>)&#x000A; <span class="ruby-identifier">offset</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-identifier">lines</span>[<span class="ruby-identifier">idx</span><span class="ruby-operator">-</span><span class="ruby-identifier">offset</span>].<span class="ruby-identifier">chomp</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">test_begin?</span>(<span class="ruby-identifier">this_line</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">idx</span><span class="ruby-operator">-</span><span class="ruby-identifier">offset</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">expectation?</span>(<span class="ruby-identifier">this_line</span>)&#x000A; <span class="ruby-identifier">adjust</span> = <span class="ruby-identifier">expectation?</span>(<span class="ruby-identifier">this_line</span>) <span class="ruby-operator">?</span> <span class="ruby-value">2</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-identifier">test</span>.<span class="ruby-identifier">first</span> = <span class="ruby-identifier">idx</span><span class="ruby-operator">-</span><span class="ruby-identifier">offset</span><span class="ruby-operator">+</span><span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">+</span><span class="ruby-identifier">adjust</span>&#x000A; <span class="ruby-identifier">desc</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-operator">*</span><span class="ruby-identifier">buffer</span>&#x000A; <span class="ruby-identifier">desc</span>.<span class="ruby-identifier">last</span> = <span class="ruby-identifier">test</span>.<span class="ruby-identifier">first</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>&#x000A; <span class="ruby-identifier">desc</span>.<span class="ruby-identifier">first</span> = <span class="ruby-identifier">desc</span>.<span class="ruby-identifier">last</span><span class="ruby-operator">-</span><span class="ruby-identifier">desc</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>&#x000A; <span class="ruby-comment cmt"># remove empty lines between the description </span>&#x000A; <span class="ruby-comment cmt"># and the previous expectation</span>&#x000A; <span class="ruby-keyword kw">while</span> <span class="ruby-operator">!</span><span class="ruby-identifier">desc</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">desc</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">empty?</span> &#x000A; <span class="ruby-identifier">desc</span>.<span class="ruby-identifier">shift</span>&#x000A; <span class="ruby-identifier">desc</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">break</span> &#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">batch</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">TestCase</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">desc</span>, <span class="ruby-identifier">test</span>, <span class="ruby-identifier">exps</span>)&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">batch</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000019'>
- <a name='M000019'> </a>
+ <div class='method public-class' id='method-M000007'>
+ <a name='M000007'> </a>
<div class='synopsis'>
<span class='name'>print</span>
<span class='arguments'>(str)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000019-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000007-source'); return false">
[show source]
</a>
- <pre id='M000019-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 187</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print</span> <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">quiet</span>&#x000A; <span class="ruby-constant">STDOUT</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-constant">STDOUT</span>.<span class="ruby-identifier">flush</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000007-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 187</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print</span> <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">quiet</span>&#x000A; <span class="ruby-constant">STDOUT</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-constant">STDOUT</span>.<span class="ruby-identifier">flush</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000017'>
- <a name='M000017'> </a>
+ <div class='method public-class' id='method-M000005'>
+ <a name='M000005'> </a>
<div class='synopsis'>
<span class='name'>run</span>
<span class='arguments'>(path)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000017-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000005-source'); return false">
[show source]
</a>
- <pre id='M000017-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 113</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span> <span class="ruby-identifier">path</span>&#x000A; <span class="ruby-identifier">batch</span> = <span class="ruby-identifier">parse</span> <span class="ruby-identifier">path</span>&#x000A; <span class="ruby-identifier">batch</span>.<span class="ruby-identifier">run</span>&#x000A; <span class="ruby-identifier">batch</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000005-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 113</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span> <span class="ruby-identifier">path</span>&#x000A; <span class="ruby-identifier">batch</span> = <span class="ruby-identifier">parse</span> <span class="ruby-identifier">path</span>&#x000A; <span class="ruby-identifier">batch</span>.<span class="ruby-identifier">run</span>&#x000A; <span class="ruby-identifier">batch</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000015'>
- <a name='M000015'> </a>
+ <div class='method public-class' id='method-M000003'>
+ <a name='M000003'> </a>
<div class='synopsis'>
<span class='name'>run_all</span>
<span class='arguments'>(*paths)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000015-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000003-source'); return false">
[show source]
</a>
- <pre id='M000015-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 43</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_all</span> <span class="ruby-operator">*</span><span class="ruby-identifier">paths</span>&#x000A; <span class="ruby-identifier">batches</span> = <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">collect</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">path</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-identifier">parse</span> <span class="ruby-identifier">path</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">all</span>, <span class="ruby-identifier">skipped_tests</span>, <span class="ruby-identifier">failed_tests</span> = <span class="ruby-value">0</span>, <span class="ruby-value">0</span>, <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">skipped_batches</span>, <span class="ruby-identifier">failed_batches</span> = <span class="ruby-value">0</span>, <span class="ruby-value">0</span>&#x000A; &#x000A; <span class="ruby-identifier">msg</span> <span class="ruby-value str">'Ruby %s @ %-40s'</span> <span class="ruby-operator">%</span> [<span class="ruby-constant">RUBY_VERSION</span>, <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>], <span class="ruby-identifier">$/</span>&#x000A; &#x000A; <span class="ruby-identifier">batches</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">batch</span><span class="ruby-operator">|</span>&#x000A; &#x000A; <span class="ruby-identifier">path</span> = <span class="ruby-identifier">batch</span>.<span class="ruby-identifier">path</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-node">/#{Dir.pwd}\/?/</span>, <span class="ruby-value str">''</span>)&#x000A; &#x000A; <span class="ruby-identifier">vmsg</span> <span class="ruby-value str">'%-60s %s'</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">path</span>, <span class="ruby-value str">''</span>]&#x000A; &#x000A; <span class="ruby-identifier">before_handler</span> = <span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">noisy</span>&#x000A; <span class="ruby-identifier">vmsg</span> <span class="ruby-constant">Console</span>.<span class="ruby-identifier">reverse</span>(<span class="ruby-value str">' %-58s '</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">t</span>.<span class="ruby-identifier">desc</span>.<span class="ruby-identifier">to_s</span>]) &#x000A; <span class="ruby-identifier">vmsg</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">test</span>.<span class="ruby-identifier">inspect</span>, <span class="ruby-identifier">t</span>.<span class="ruby-identifier">exps</span>.<span class="ruby-identifier">inspect</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">batch</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">before_handler</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">failed?</span> &#x000A; <span class="ruby-identifier">failed_tests</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">noisy</span> &#x000A; <span class="ruby-identifier">vmsg</span> <span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">:red</span>, <span class="ruby-identifier">t</span>.<span class="ruby-identifier">failed</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">$/</span>)), <span class="ruby-identifier">$/</span>&#x000A; <span class="ruby-keyword kw">else</span>&#x000A; <span class="ruby-identifier">msg</span> <span class="ruby-value str">' %s (%s:%s)'</span> <span class="ruby-operator">%</span> [<span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">:red</span>, <span class="ruby-value str">&quot;FAIL&quot;</span>), <span class="ruby-identifier">path</span>, <span class="ruby-identifier">t</span>.<span class="ruby-identifier">exps</span>.<span class="ruby-identifier">first</span>]&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">skipped?</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">t</span>.<span class="ruby-identifier">run?</span>&#x000A; <span class="ruby-identifier">skipped_tests</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">noisy</span>&#x000A; <span class="ruby-identifier">vmsg</span> <span class="ruby-constant">Console</span>.<span class="ruby-identifier">bright</span>(<span class="ruby-identifier">t</span>.<span class="ruby-identifier">skipped</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">$/</span>)), <span class="ruby-identifier">$/</span>&#x000A; <span class="ruby-keyword kw">else</span>&#x000A; <span class="ruby-identifier">msg</span> <span class="ruby-value str">' SKIP (%s:%s)'</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">path</span>, <span class="ruby-identifier">t</span>.<span class="ruby-identifier">exps</span>.<span class="ruby-identifier">first</span>]&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">else</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">noisy</span>&#x000A; <span class="ruby-identifier">vmsg</span> <span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">:green</span>, <span class="ruby-identifier">t</span>.<span class="ruby-identifier">passed</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">$/</span>)), <span class="ruby-identifier">$/</span>&#x000A; <span class="ruby-keyword kw">else</span>&#x000A; <span class="ruby-identifier">msg</span> <span class="ruby-value str">' %s'</span> <span class="ruby-operator">%</span> [<span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">:green</span>, <span class="ruby-value str">'PASS'</span>)]&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-identifier">all</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">msg</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">all</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">suffix</span> = <span class="ruby-value str">'tests passed'</span>&#x000A; <span class="ruby-identifier">suffix</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; (and #{skipped_tests} skipped)&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">skipped_tests</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">msg</span> <span class="ruby-identifier">cformat</span>(<span class="ruby-identifier">all</span><span class="ruby-operator">-</span><span class="ruby-identifier">failed_tests</span><span class="ruby-operator">-</span><span class="ruby-identifier">skipped_tests</span>, <span class="ruby-identifier">all</span><span class="ruby-operator">-</span><span class="ruby-identifier">skipped_tests</span>, <span class="ruby-identifier">suffix</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">all</span><span class="ruby-operator">-</span><span class="ruby-identifier">skipped_tests</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">batches</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">batches</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-identifier">skipped_batches</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">suffix</span> = <span class="ruby-value str">&quot;batches passed&quot;</span>&#x000A; <span class="ruby-identifier">suffix</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; (and #{skipped_batches} skipped)&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">skipped_batches</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">msg</span> <span class="ruby-identifier">cformat</span>(<span class="ruby-identifier">batches</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-identifier">skipped_batches</span><span class="ruby-operator">-</span><span class="ruby-identifier">failed_batches</span>, <span class="ruby-identifier">batches</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-identifier">skipped_batches</span>, <span class="ruby-identifier">suffix</span>)&#x000A; <span class="ruby-keyword kw">end</span> &#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">failed_tests</span> <span class="ruby-comment cmt"># 0 means success</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000003-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 43</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_all</span> <span class="ruby-operator">*</span><span class="ruby-identifier">paths</span>&#x000A; <span class="ruby-identifier">batches</span> = <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">collect</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">path</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-identifier">parse</span> <span class="ruby-identifier">path</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">all</span>, <span class="ruby-identifier">skipped_tests</span>, <span class="ruby-identifier">failed_tests</span> = <span class="ruby-value">0</span>, <span class="ruby-value">0</span>, <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">skipped_batches</span>, <span class="ruby-identifier">failed_batches</span> = <span class="ruby-value">0</span>, <span class="ruby-value">0</span>&#x000A; &#x000A; <span class="ruby-identifier">msg</span> <span class="ruby-value str">'Ruby %s @ %-40s'</span> <span class="ruby-operator">%</span> [<span class="ruby-constant">RUBY_VERSION</span>, <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>], <span class="ruby-identifier">$/</span>&#x000A; &#x000A; <span class="ruby-identifier">batches</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">batch</span><span class="ruby-operator">|</span>&#x000A; &#x000A; <span class="ruby-identifier">path</span> = <span class="ruby-identifier">batch</span>.<span class="ruby-identifier">path</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-node">/#{Dir.pwd}\/?/</span>, <span class="ruby-value str">''</span>)&#x000A; &#x000A; <span class="ruby-identifier">vmsg</span> <span class="ruby-value str">'%-60s %s'</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">path</span>, <span class="ruby-value str">''</span>]&#x000A; &#x000A; <span class="ruby-identifier">before_handler</span> = <span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">noisy</span>&#x000A; <span class="ruby-identifier">vmsg</span> <span class="ruby-constant">Console</span>.<span class="ruby-identifier">reverse</span>(<span class="ruby-value str">' %-58s '</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">t</span>.<span class="ruby-identifier">desc</span>.<span class="ruby-identifier">to_s</span>]) &#x000A; <span class="ruby-identifier">vmsg</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">test</span>.<span class="ruby-identifier">inspect</span>, <span class="ruby-identifier">t</span>.<span class="ruby-identifier">exps</span>.<span class="ruby-identifier">inspect</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">batch</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">before_handler</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">failed?</span> &#x000A; <span class="ruby-identifier">failed_tests</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">noisy</span> &#x000A; <span class="ruby-identifier">vmsg</span> <span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">:red</span>, <span class="ruby-identifier">t</span>.<span class="ruby-identifier">failed</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">$/</span>)), <span class="ruby-identifier">$/</span>&#x000A; <span class="ruby-keyword kw">else</span>&#x000A; <span class="ruby-identifier">msg</span> <span class="ruby-value str">' %s (%s:%s)'</span> <span class="ruby-operator">%</span> [<span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">:red</span>, <span class="ruby-value str">&quot;FAIL&quot;</span>), <span class="ruby-identifier">path</span>, <span class="ruby-identifier">t</span>.<span class="ruby-identifier">exps</span>.<span class="ruby-identifier">first</span>]&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">skipped?</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">t</span>.<span class="ruby-identifier">run?</span>&#x000A; <span class="ruby-identifier">skipped_tests</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">noisy</span>&#x000A; <span class="ruby-identifier">vmsg</span> <span class="ruby-constant">Console</span>.<span class="ruby-identifier">bright</span>(<span class="ruby-identifier">t</span>.<span class="ruby-identifier">skipped</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">$/</span>)), <span class="ruby-identifier">$/</span>&#x000A; <span class="ruby-keyword kw">else</span>&#x000A; <span class="ruby-identifier">msg</span> <span class="ruby-value str">' SKIP (%s:%s)'</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">path</span>, <span class="ruby-identifier">t</span>.<span class="ruby-identifier">exps</span>.<span class="ruby-identifier">first</span>]&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">else</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">noisy</span>&#x000A; <span class="ruby-identifier">vmsg</span> <span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">:green</span>, <span class="ruby-identifier">t</span>.<span class="ruby-identifier">passed</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">$/</span>)), <span class="ruby-identifier">$/</span>&#x000A; <span class="ruby-keyword kw">else</span>&#x000A; <span class="ruby-identifier">msg</span> <span class="ruby-value str">' %s'</span> <span class="ruby-operator">%</span> [<span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">:green</span>, <span class="ruby-value str">'PASS'</span>)]&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-identifier">all</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">msg</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">all</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">suffix</span> = <span class="ruby-value str">'tests passed'</span>&#x000A; <span class="ruby-identifier">suffix</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; (and #{skipped_tests} skipped)&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">skipped_tests</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">msg</span> <span class="ruby-identifier">cformat</span>(<span class="ruby-identifier">all</span><span class="ruby-operator">-</span><span class="ruby-identifier">failed_tests</span><span class="ruby-operator">-</span><span class="ruby-identifier">skipped_tests</span>, <span class="ruby-identifier">all</span><span class="ruby-operator">-</span><span class="ruby-identifier">skipped_tests</span>, <span class="ruby-identifier">suffix</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">all</span><span class="ruby-operator">-</span><span class="ruby-identifier">skipped_tests</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">batches</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">batches</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-identifier">skipped_batches</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">suffix</span> = <span class="ruby-value str">&quot;batches passed&quot;</span>&#x000A; <span class="ruby-identifier">suffix</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; (and #{skipped_batches} skipped)&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">skipped_batches</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-identifier">msg</span> <span class="ruby-identifier">cformat</span>(<span class="ruby-identifier">batches</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-identifier">skipped_batches</span><span class="ruby-operator">-</span><span class="ruby-identifier">failed_batches</span>, <span class="ruby-identifier">batches</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-identifier">skipped_batches</span>, <span class="ruby-identifier">suffix</span>)&#x000A; <span class="ruby-keyword kw">end</span> &#x000A; <span class="ruby-keyword kw">end</span>&#x000A; &#x000A; <span class="ruby-identifier">failed_tests</span> <span class="ruby-comment cmt"># 0 means success</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000013'>
- <a name='M000013'> </a>
+ <div class='method public-class' id='method-M000001'>
+ <a name='M000001'> </a>
<div class='synopsis'>
<span class='name'>sysinfo</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000013-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000001-source'); return false">
[show source]
</a>
- <pre id='M000013-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 35</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sysinfo</span>&#x000A; <span class="ruby-identifier">require</span> <span class="ruby-value str">'sysinfo'</span>&#x000A; <span class="ruby-ivar">@sysinfo</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">SysInfo</span>.<span class="ruby-identifier">new</span>&#x000A; <span class="ruby-ivar">@sysinfo</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000001-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 35</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sysinfo</span>&#x000A; <span class="ruby-identifier">require</span> <span class="ruby-value str">'sysinfo'</span>&#x000A; <span class="ruby-ivar">@sysinfo</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">SysInfo</span>.<span class="ruby-identifier">new</span>&#x000A; <span class="ruby-ivar">@sysinfo</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000020'>
- <a name='M000020'> </a>
+ <div class='method public-class' id='method-M000008'>
+ <a name='M000008'> </a>
<div class='synopsis'>
<span class='name'>vmsg</span>
<span class='arguments'>(*msg)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000020-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000008-source'); return false">
[show source]
</a>
- <pre id='M000020-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 193</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">vmsg</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span>&#x000A; <span class="ruby-constant">STDOUT</span>.<span class="ruby-identifier">puts</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">quiet</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">noisy</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000008-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 193</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">vmsg</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span>&#x000A; <span class="ruby-constant">STDOUT</span>.<span class="ruby-identifier">puts</span> <span class="ruby-operator">*</span><span class="ruby-identifier">msg</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">quiet</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">noisy</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
View
52 classes/Tryouts/Console.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
- <title>: Tryouts::Console [stella 2.1.0}]</title>
+ <title>: Tryouts::Console [stella 2.1.1}]</title>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<link href='../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
<script type='text/javascript'>
@@ -41,11 +41,11 @@ <h1 class='name'>
<h2>Methods</h2>
<h3>public class</h3>
<ol>
- <li><a href="#M000030">att</a></li>
- <li><a href="#M000031">bgcolor</a></li>
- <li><a href="#M000027">bright</a></li>
- <li><a href="#M000029">color</a></li>
- <li><a href="#M000028">reverse</a></li>
+ <li><a href="#M000018">att</a></li>
+ <li><a href="#M000019">bgcolor</a></li>
+ <li><a href="#M000015">bright</a></li>
+ <li><a href="#M000017">color</a></li>
+ <li><a href="#M000016">reverse</a></li>
</ol>
</div>
<div id='section'>
@@ -92,69 +92,69 @@ <h1 class='name'>
</div>
<div id='methods'>
<h2>Public class methods</h2>
- <div class='method public-class' id='method-M000030'>
- <a name='M000030'> </a>
+ <div class='method public-class' id='method-M000018'>
+ <a name='M000018'> </a>
<div class='synopsis'>
<span class='name'>att</span>
<span class='arguments'>(name, str)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000030-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000018-source'); return false">
[show source]
</a>
- <pre id='M000030-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 445</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">att</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">str</span>)&#x000A; <span class="ruby-identifier">str</span> = [<span class="ruby-identifier">style</span>(<span class="ruby-constant">ATTRIBUTES</span>[<span class="ruby-identifier">name</span>]), <span class="ruby-identifier">str</span>, <span class="ruby-identifier">default_style</span>].<span class="ruby-identifier">join</span>&#x000A; <span class="ruby-identifier">str</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Console</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceMethods</span>&#x000A; <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000018-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 445</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">att</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">str</span>)&#x000A; <span class="ruby-identifier">str</span> = [<span class="ruby-identifier">style</span>(<span class="ruby-constant">ATTRIBUTES</span>[<span class="ruby-identifier">name</span>]), <span class="ruby-identifier">str</span>, <span class="ruby-identifier">default_style</span>].<span class="ruby-identifier">join</span>&#x000A; <span class="ruby-identifier">str</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Console</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceMethods</span>&#x000A; <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000031'>
- <a name='M000031'> </a>
+ <div class='method public-class' id='method-M000019'>
+ <a name='M000019'> </a>
<div class='synopsis'>
<span class='name'>bgcolor</span>
<span class='arguments'>(col, str)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000031-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000019-source'); return false">
[show source]
</a>
- <pre id='M000031-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 450</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bgcolor</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">str</span>)&#x000A; <span class="ruby-identifier">str</span> = [<span class="ruby-identifier">style</span>(<span class="ruby-constant">ATTRIBUTES</span>[<span class="ruby-identifier">col</span>]), <span class="ruby-identifier">str</span>, <span class="ruby-identifier">default_style</span>].<span class="ruby-identifier">join</span>&#x000A; <span class="ruby-identifier">str</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Console</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceMethods</span>&#x000A; <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000019-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 450</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bgcolor</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">str</span>)&#x000A; <span class="ruby-identifier">str</span> = [<span class="ruby-identifier">style</span>(<span class="ruby-constant">ATTRIBUTES</span>[<span class="ruby-identifier">col</span>]), <span class="ruby-identifier">str</span>, <span class="ruby-identifier">default_style</span>].<span class="ruby-identifier">join</span>&#x000A; <span class="ruby-identifier">str</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Console</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceMethods</span>&#x000A; <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000027'>
- <a name='M000027'> </a>
+ <div class='method public-class' id='method-M000015'>
+ <a name='M000015'> </a>
<div class='synopsis'>
<span class='name'>bright</span>
<span class='arguments'>(str)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000027-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000015-source'); return false">
[show source]
</a>
- <pre id='M000027-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 430</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bright</span>(<span class="ruby-identifier">str</span>)&#x000A; <span class="ruby-identifier">str</span> = [<span class="ruby-identifier">style</span>(<span class="ruby-constant">ATTRIBUTES</span>[<span class="ruby-identifier">:bright</span>]), <span class="ruby-identifier">str</span>, <span class="ruby-identifier">default_style</span>].<span class="ruby-identifier">join</span>&#x000A; <span class="ruby-identifier">str</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Console</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceMethods</span>&#x000A; <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000015-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 430</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bright</span>(<span class="ruby-identifier">str</span>)&#x000A; <span class="ruby-identifier">str</span> = [<span class="ruby-identifier">style</span>(<span class="ruby-constant">ATTRIBUTES</span>[<span class="ruby-identifier">:bright</span>]), <span class="ruby-identifier">str</span>, <span class="ruby-identifier">default_style</span>].<span class="ruby-identifier">join</span>&#x000A; <span class="ruby-identifier">str</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Console</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceMethods</span>&#x000A; <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000029'>
- <a name='M000029'> </a>
+ <div class='method public-class' id='method-M000017'>
+ <a name='M000017'> </a>
<div class='synopsis'>
<span class='name'>color</span>
<span class='arguments'>(col, str)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000029-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000017-source'); return false">
[show source]
</a>
- <pre id='M000029-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 440</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">str</span>)&#x000A; <span class="ruby-identifier">str</span> = [<span class="ruby-identifier">style</span>(<span class="ruby-constant">COLOURS</span>[<span class="ruby-identifier">col</span>]), <span class="ruby-identifier">str</span>, <span class="ruby-identifier">default_style</span>].<span class="ruby-identifier">join</span>&#x000A; <span class="ruby-identifier">str</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Console</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceMethods</span>&#x000A; <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000017-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 440</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">str</span>)&#x000A; <span class="ruby-identifier">str</span> = [<span class="ruby-identifier">style</span>(<span class="ruby-constant">COLOURS</span>[<span class="ruby-identifier">col</span>]), <span class="ruby-identifier">str</span>, <span class="ruby-identifier">default_style</span>].<span class="ruby-identifier">join</span>&#x000A; <span class="ruby-identifier">str</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Console</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceMethods</span>&#x000A; <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000028'>
- <a name='M000028'> </a>
+ <div class='method public-class' id='method-M000016'>
+ <a name='M000016'> </a>
<div class='synopsis'>
<span class='name'>reverse</span>
<span class='arguments'>(str)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000028-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000016-source'); return false">
[show source]
</a>
- <pre id='M000028-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 435</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">reverse</span>(<span class="ruby-identifier">str</span>)&#x000A; <span class="ruby-identifier">str</span> = [<span class="ruby-identifier">style</span>(<span class="ruby-constant">ATTRIBUTES</span>[<span class="ruby-identifier">:reverse</span>]), <span class="ruby-identifier">str</span>, <span class="ruby-identifier">default_style</span>].<span class="ruby-identifier">join</span>&#x000A; <span class="ruby-identifier">str</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Console</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceMethods</span>&#x000A; <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000016-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 435</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">reverse</span>(<span class="ruby-identifier">str</span>)&#x000A; <span class="ruby-identifier">str</span> = [<span class="ruby-identifier">style</span>(<span class="ruby-constant">ATTRIBUTES</span>[<span class="ruby-identifier">:reverse</span>]), <span class="ruby-identifier">str</span>, <span class="ruby-identifier">default_style</span>].<span class="ruby-identifier">join</span>&#x000A; <span class="ruby-identifier">str</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Console</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceMethods</span>&#x000A; <span class="ruby-identifier">str</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
View
52 classes/Tryouts/Console/InstanceMethods.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
- <title>: Tryouts::Console::InstanceMethods [stella 2.1.0}]</title>
+ <title>: Tryouts::Console::InstanceMethods [stella 2.1.1}]</title>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<link href='../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
<script type='text/javascript'>
@@ -41,79 +41,79 @@ <h1 class='name'>
<h2>Methods</h2>
<h3>public instance</h3>
<ol>
- <li><a href="#M000035">att</a></li>
- <li><a href="#M000036">bgcolor</a></li>
- <li><a href="#M000032">bright</a></li>
- <li><a href="#M000034">color</a></li>
- <li><a href="#M000033">reverse</a></li>
+ <li><a href="#M000023">att</a></li>
+ <li><a href="#M000024">bgcolor</a></li>
+ <li><a href="#M000020">bright</a></li>
+ <li><a href="#M000022">color</a></li>
+ <li><a href="#M000021">reverse</a></li>
</ol>
</div>
<div id='section'>
<div id='methods'>
<h2>Public instance methods</h2>
- <div class='method public-instance' id='method-M000035'>
- <a name='M000035'> </a>
+ <div class='method public-instance' id='method-M000023'>
+ <a name='M000023'> </a>
<div class='synopsis'>
<span class='name'>att</span>
<span class='arguments'>(col)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000035-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000023-source'); return false">
[show source]
</a>
- <pre id='M000035-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 422</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">att</span>(<span class="ruby-identifier">col</span>)&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">att</span>(<span class="ruby-identifier">col</span>, <span class="ruby-keyword kw">self</span>)&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000023-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 422</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">att</span>(<span class="ruby-identifier">col</span>)&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">att</span>(<span class="ruby-identifier">col</span>, <span class="ruby-keyword kw">self</span>)&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000036'>
- <a name='M000036'> </a>
+ <div class='method public-instance' id='method-M000024'>
+ <a name='M000024'> </a>
<div class='synopsis'>
<span class='name'>bgcolor</span>
<span class='arguments'>(col)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000036-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000024-source'); return false">
[show source]
</a>
- <pre id='M000036-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 425</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bgcolor</span>(<span class="ruby-identifier">col</span>)&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">bgcolor</span>(<span class="ruby-identifier">col</span>, <span class="ruby-keyword kw">self</span>)&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000024-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 425</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bgcolor</span>(<span class="ruby-identifier">col</span>)&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">bgcolor</span>(<span class="ruby-identifier">col</span>, <span class="ruby-keyword kw">self</span>)&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000032'>
- <a name='M000032'> </a>
+ <div class='method public-instance' id='method-M000020'>
+ <a name='M000020'> </a>
<div class='synopsis'>
<span class='name'>bright</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000032-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000020-source'); return false">
[show source]
</a>
- <pre id='M000032-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 413</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bright</span>&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">bright</span>(<span class="ruby-keyword kw">self</span>)&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000020-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 413</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bright</span>&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">bright</span>(<span class="ruby-keyword kw">self</span>)&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000034'>
- <a name='M000034'> </a>
+ <div class='method public-instance' id='method-M000022'>
+ <a name='M000022'> </a>
<div class='synopsis'>
<span class='name'>color</span>
<span class='arguments'>(col)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000034-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000022-source'); return false">
[show source]
</a>
- <pre id='M000034-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 419</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">color</span>(<span class="ruby-identifier">col</span>)&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">col</span>, <span class="ruby-keyword kw">self</span>)&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000022-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 419</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">color</span>(<span class="ruby-identifier">col</span>)&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">color</span>(<span class="ruby-identifier">col</span>, <span class="ruby-keyword kw">self</span>)&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000033'>
- <a name='M000033'> </a>
+ <div class='method public-instance' id='method-M000021'>
+ <a name='M000021'> </a>
<div class='synopsis'>
<span class='name'>reverse</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000033-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000021-source'); return false">
[show source]
</a>
- <pre id='M000033-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 416</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse</span>&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">reverse</span>(<span class="ruby-keyword kw">self</span>)&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000021-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 416</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse</span>&#x000A; <span class="ruby-constant">Console</span>.<span class="ruby-identifier">reverse</span>(<span class="ruby-keyword kw">self</span>)&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
View
42 classes/Tryouts/Section.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
- <title>: Tryouts::Section [stella 2.1.0}]</title>
+ <title>: Tryouts::Section [stella 2.1.1}]</title>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<link href='../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
<script type='text/javascript'>
@@ -45,13 +45,13 @@ <h1 class='name'>
<h2>Methods</h2>
<h3>public class</h3>
<ol>
- <li><a href="#M000051">new</a></li>
+ <li><a href="#M000039">new</a></li>
</ol>
<h3>public instance</h3>
<ol>
- <li><a href="#M000053">inspect</a></li>
- <li><a href="#M000052">range</a></li>
- <li><a href="#M000054">to_s</a></li>
+ <li><a href="#M000041">inspect</a></li>
+ <li><a href="#M000040">range</a></li>
+ <li><a href="#M000042">to_s</a></li>
</ol>
</div>
<div id='section'>
@@ -79,57 +79,57 @@ <h2 class='section-bar'>Attributes</h2>
</div>
<div id='methods'>
<h2>Public class methods</h2>
- <div class='method public-class' id='method-M000051'>
- <a name='M000051'> </a>
+ <div class='method public-class' id='method-M000039'>
+ <a name='M000039'> </a>
<div class='synopsis'>
<span class='name'>new</span>
<span class='arguments'>(path, start=0)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000051-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000039-source'); return false">
[show source]
</a>
- <pre id='M000051-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 352</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">start</span>=<span class="ruby-value">0</span>&#x000A; <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span>&#x000A; <span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span> = <span class="ruby-identifier">start</span>, <span class="ruby-identifier">start</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000039-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 352</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">start</span>=<span class="ruby-value">0</span>&#x000A; <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span>&#x000A; <span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span> = <span class="ruby-identifier">start</span>, <span class="ruby-identifier">start</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
<h2>Public instance methods</h2>
- <div class='method public-instance' id='method-M000053'>
- <a name='M000053'> </a>
+ <div class='method public-instance' id='method-M000041'>
+ <a name='M000041'> </a>
<div class='synopsis'>
<span class='name'>inspect</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000053-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000041-source'); return false">
[show source]
</a>
- <pre id='M000053-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 359</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>&#x000A; <span class="ruby-identifier">range</span>.<span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">zip</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">collect</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-value str">&quot;%-4d %s\n&quot;</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">line</span>&#x000A; <span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">join</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000041-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 359</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>&#x000A; <span class="ruby-identifier">range</span>.<span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">zip</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">collect</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>&#x000A; <span class="ruby-value str">&quot;%-4d %s\n&quot;</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">line</span>&#x000A; <span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">join</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000052'>
- <a name='M000052'> </a>
+ <div class='method public-instance' id='method-M000040'>
+ <a name='M000040'> </a>
<div class='synopsis'>
<span class='name'>range</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000052-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000040-source'); return false">
[show source]
</a>
- <pre id='M000052-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 356</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range</span>&#x000A; <span class="ruby-ivar">@first</span><span class="ruby-operator">..</span><span class="ruby-ivar">@last</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000040-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 356</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">range</span>&#x000A; <span class="ruby-ivar">@first</span><span class="ruby-operator">..</span><span class="ruby-ivar">@last</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000054'>
- <a name='M000054'> </a>
+ <div class='method public-instance' id='method-M000042'>
+ <a name='M000042'> </a>
<div class='synopsis'>
<span class='name'>to_s</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000054-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000042-source'); return false">
[show source]
</a>
- <pre id='M000054-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 364</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>&#x000A; <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">$/</span>)&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000042-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 364</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>&#x000A; <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">$/</span>)&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
View
62 classes/Tryouts/TestBatch.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
- <title>: Tryouts::TestBatch [stella 2.1.0}]</title>
+ <title>: Tryouts::TestBatch [stella 2.1.1}]</title>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<link href='../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
<script type='text/javascript'>
@@ -45,15 +45,15 @@ <h1 class='name'>
<h2>Methods</h2>
<h3>public class</h3>
<ol>
- <li><a href="#M000037">new</a></li>
+ <li><a href="#M000025">new</a></li>
</ol>
<h3>public instance</h3>
<ol>
- <li><a href="#M000041">clean</a></li>
- <li><a href="#M000039">failed?</a></li>
- <li><a href="#M000038">run</a></li>
- <li><a href="#M000042">run?</a></li>
- <li><a href="#M000040">setup</a></li>
+ <li><a href="#M000029">clean</a></li>
+ <li><a href="#M000027">failed?</a></li>
+ <li><a href="#M000026">run</a></li>
+ <li><a href="#M000030">run?</a></li>
+ <li><a href="#M000028">setup</a></li>
</ol>
</div>
<div id='section'>
@@ -85,83 +85,83 @@ <h2 class='section-bar'>Attributes</h2>
</div>
<div id='methods'>
<h2>Public class methods</h2>
- <div class='method public-class' id='method-M000037'>
- <a name='M000037'> </a>
+ <div class='method public-class' id='method-M000025'>
+ <a name='M000025'> </a>
<div class='synopsis'>
<span class='name'>new</span>
<span class='arguments'>(p,l)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000037-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000025-source'); return false">
[show source]
</a>
- <pre id='M000037-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 257</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">p</span>,<span class="ruby-identifier">l</span>)&#x000A; <span class="ruby-ivar">@path</span>, <span class="ruby-ivar">@lines</span> = <span class="ruby-identifier">p</span>, <span class="ruby-identifier">l</span>&#x000A; <span class="ruby-ivar">@container</span> = <span class="ruby-constant">Container</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">metaclass</span>&#x000A; <span class="ruby-ivar">@run</span> = <span class="ruby-keyword kw">false</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000025-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 257</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">p</span>,<span class="ruby-identifier">l</span>)&#x000A; <span class="ruby-ivar">@path</span>, <span class="ruby-ivar">@lines</span> = <span class="ruby-identifier">p</span>, <span class="ruby-identifier">l</span>&#x000A; <span class="ruby-ivar">@container</span> = <span class="ruby-constant">Container</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">metaclass</span>&#x000A; <span class="ruby-ivar">@run</span> = <span class="ruby-keyword kw">false</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
<h2>Public instance methods</h2>
- <div class='method public-instance' id='method-M000041'>
- <a name='M000041'> </a>
+ <div class='method public-instance' id='method-M000029'>
+ <a name='M000029'> </a>
<div class='synopsis'>
<span class='name'>clean</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000041-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000029-source'); return false">
[show source]
</a>
- <pre id='M000041-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 284</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clean</span>&#x000A; <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">empty?</span>&#x000A; <span class="ruby-identifier">last_line</span> = <span class="ruby-identifier">last</span>.<span class="ruby-identifier">exps</span>.<span class="ruby-identifier">last</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">last_line</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">size</span>&#x000A; <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">eval</span> <span class="ruby-identifier">lines</span>[<span class="ruby-identifier">last_line</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">join</span>, <span class="ruby-identifier">path</span>, <span class="ruby-identifier">last_line</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000029-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 284</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clean</span>&#x000A; <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">empty?</span>&#x000A; <span class="ruby-identifier">last_line</span> = <span class="ruby-identifier">last</span>.<span class="ruby-identifier">exps</span>.<span class="ruby-identifier">last</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>&#x000A; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">last_line</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">size</span>&#x000A; <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">eval</span> <span class="ruby-identifier">lines</span>[<span class="ruby-identifier">last_line</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">join</span>, <span class="ruby-identifier">path</span>, <span class="ruby-identifier">last_line</span>&#x000A; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000039'>
- <a name='M000039'> </a>
+ <div class='method public-instance' id='method-M000027'>
+ <a name='M000027'> </a>
<div class='synopsis'>
<span class='name'>failed?</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000039-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000027-source'); return false">
[show source]
</a>
- <pre id='M000039-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 276</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">failed?</span>&#x000A; <span class="ruby-operator">!</span><span class="ruby-ivar">@failed</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@failed</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000027-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 276</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">failed?</span>&#x000A; <span class="ruby-operator">!</span><span class="ruby-ivar">@failed</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@failed</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000038'>
- <a name='M000038'> </a>
+ <div class='method public-instance' id='method-M000026'>
+ <a name='M000026'> </a>
<div class='synopsis'>
<span class='name'>run</span>
<span class='arguments'>(before_test, &amp;after_test)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000038-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000026-source'); return false">
[show source]
</a>
- <pre id='M000038-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 262</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>(<span class="ruby-identifier">before_test</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">after_test</span>)&#x000A; <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">empty?</span>&#x000A; <span class="ruby-identifier">setup</span>&#x000A; <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">tc</span><span class="ruby-operator">|</span> &#x000A; <span class="ruby-identifier">before_test</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">tc</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">before_test</span>.<span class="ruby-identifier">nil?</span>&#x000A; <span class="ruby-identifier">ret</span> = <span class="ruby-operator">!</span><span class="ruby-identifier">tc</span>.<span class="ruby-identifier">run</span> &#x000A; <span class="ruby-identifier">after_test</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">tc</span>)&#x000A; <span class="ruby-identifier">ret</span> <span class="ruby-comment cmt"># select failed tests</span>&#x000A; } &#x000A; <span class="ruby-ivar">@failed</span> = <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">size</span>&#x000A; <span class="ruby-ivar">@run</span> = <span class="ruby-keyword kw">true</span>&#x000A; <span class="ruby-identifier">clean</span>&#x000A; <span class="ruby-operator">!</span><span class="ruby-identifier">failed?</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000026-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 262</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>(<span class="ruby-identifier">before_test</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">after_test</span>)&#x000A; <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">empty?</span>&#x000A; <span class="ruby-identifier">setup</span>&#x000A; <span class="ruby-identifier">ret</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">tc</span><span class="ruby-operator">|</span> &#x000A; <span class="ruby-identifier">before_test</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">tc</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">before_test</span>.<span class="ruby-identifier">nil?</span>&#x000A; <span class="ruby-identifier">ret</span> = <span class="ruby-operator">!</span><span class="ruby-identifier">tc</span>.<span class="ruby-identifier">run</span> &#x000A; <span class="ruby-identifier">after_test</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">tc</span>)&#x000A; <span class="ruby-identifier">ret</span> <span class="ruby-comment cmt"># select failed tests</span>&#x000A; } &#x000A; <span class="ruby-ivar">@failed</span> = <span class="ruby-identifier">ret</span>.<span class="ruby-identifier">size</span>&#x000A; <span class="ruby-ivar">@run</span> = <span class="ruby-keyword kw">true</span>&#x000A; <span class="ruby-identifier">clean</span>&#x000A; <span class="ruby-operator">!</span><span class="ruby-identifier">failed?</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000042'>
- <a name='M000042'> </a>
+ <div class='method public-instance' id='method-M000030'>
+ <a name='M000030'> </a>
<div class='synopsis'>
<span class='name'>run?</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000042-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000030-source'); return false">
[show source]
</a>
- <pre id='M000042-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 291</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run?</span>&#x000A; <span class="ruby-ivar">@run</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000030-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 291</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run?</span>&#x000A; <span class="ruby-ivar">@run</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000040'>
- <a name='M000040'> </a>
+ <div class='method public-instance' id='method-M000028'>
+ <a name='M000028'> </a>
<div class='synopsis'>
<span class='name'>setup</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000040-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000028-source'); return false">
[show source]
</a>
- <pre id='M000040-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 279</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>&#x000A; <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">empty?</span>&#x000A; <span class="ruby-identifier">start</span> = <span class="ruby-identifier">first</span>.<span class="ruby-identifier">desc</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-identifier">first</span>.<span class="ruby-identifier">test</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">first</span>.<span class="ruby-identifier">desc</span>.<span class="ruby-identifier">first</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>&#x000A; <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">eval</span> <span class="ruby-identifier">lines</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-identifier">start</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>].<span class="ruby-identifier">join</span>, <span class="ruby-identifier">path</span>, <span class="ruby-value">0</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">start</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000028-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 279</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>&#x000A; <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">empty?</span>&#x000A; <span class="ruby-identifier">start</span> = <span class="ruby-identifier">first</span>.<span class="ruby-identifier">desc</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-identifier">first</span>.<span class="ruby-identifier">test</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">first</span>.<span class="ruby-identifier">desc</span>.<span class="ruby-identifier">first</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>&#x000A; <span class="ruby-constant">Tryouts</span>.<span class="ruby-identifier">eval</span> <span class="ruby-identifier">lines</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-identifier">start</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>].<span class="ruby-identifier">join</span>, <span class="ruby-identifier">path</span>, <span class="ruby-value">0</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">start</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
View
12 classes/Tryouts/TestBatch/Container.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
- <title>: Tryouts::TestBatch::Container [stella 2.1.0}]</title>
+ <title>: Tryouts::TestBatch::Container [stella 2.1.1}]</title>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<link href='../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
<script type='text/javascript'>
@@ -45,23 +45,23 @@ <h1 class='name'>
<h2>Methods</h2>
<h3>public instance</h3>
<ol>
- <li><a href="#M000043">metaclass</a></li>
+ <li><a href="#M000031">metaclass</a></li>
</ol>
</div>
<div id='section'>
<div id='methods'>
<h2>Public instance methods</h2>
- <div class='method public-instance' id='method-M000043'>
- <a name='M000043'> </a>
+ <div class='method public-instance' id='method-M000031'>
+ <a name='M000031'> </a>
<div class='synopsis'>
<span class='name'>metaclass</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000043-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000031-source'); return false">
[show source]
</a>
- <pre id='M000043-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 250</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">metaclass</span>&#x000A; <span class="ruby-keyword kw">class</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000031-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 250</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">metaclass</span>&#x000A; <span class="ruby-keyword kw">class</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">end</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
View
72 classes/Tryouts/TestCase.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
- <title>: Tryouts::TestCase [stella 2.1.0}]</title>
+ <title>: Tryouts::TestCase [stella 2.1.1}]</title>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<link href='../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
<script type='text/javascript'>
@@ -45,16 +45,16 @@ <h1 class='name'>
<h2>Methods</h2>
<h3>public class</h3>
<ol>
- <li><a href="#M000044">new</a></li>
+ <li><a href="#M000032">new</a></li>
</ol>
<h3>public instance</h3>
<ol>
- <li><a href="#M000050">failed?</a></li>
- <li><a href="#M000045">inspect</a></li>
- <li><a href="#M000047">run</a></li>
- <li><a href="#M000049">run?</a></li>
- <li><a href="#M000048">skipped?</a></li>
- <li><a href="#M000046">to_s</a></li>
+ <li><a href="#M000038">failed?</a></li>
+ <li><a href="#M000033">inspect</a></li>
+ <li><a href="#M000035">run</a></li>
+ <li><a href="#M000037">run?</a></li>
+ <li><a href="#M000036">skipped?</a></li>
+ <li><a href="#M000034">to_s</a></li>
</ol>
</div>
<div id='section'>
@@ -97,96 +97,96 @@ <h2 class='section-bar'>Attributes</h2>
</div>
<div id='methods'>
<h2>Public class methods</h2>
- <div class='method public-class' id='method-M000044'>
- <a name='M000044'> </a>
+ <div class='method public-class' id='method-M000032'>
+ <a name='M000032'> </a>
<div class='synopsis'>
<span class='name'>new</span>
<span class='arguments'>(d,t,e)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000044-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000032-source'); return false">
[show source]
</a>
- <pre id='M000044-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 297</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">d</span>,<span class="ruby-identifier">t</span>,<span class="ruby-identifier">e</span>)&#x000A; <span class="ruby-ivar">@desc</span>, <span class="ruby-ivar">@test</span>, <span class="ruby-ivar">@exps</span>, <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">d</span>,<span class="ruby-identifier">t</span>,<span class="ruby-identifier">e</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000032-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 297</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">d</span>,<span class="ruby-identifier">t</span>,<span class="ruby-identifier">e</span>)&#x000A; <span class="ruby-ivar">@desc</span>, <span class="ruby-ivar">@test</span>, <span class="ruby-ivar">@exps</span>, <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">d</span>,<span class="ruby-identifier">t</span>,<span class="ruby-identifier">e</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
<h2>Public instance methods</h2>
- <div class='method public-instance' id='method-M000050'>
- <a name='M000050'> </a>
+ <div class='method public-instance' id='method-M000038'>
+ <a name='M000038'> </a>
<div class='synopsis'>
<span class='name'>failed?</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000050-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000038-source'); return false">
[show source]
</a>
- <pre id='M000050-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 342</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">failed?</span>&#x000A; <span class="ruby-operator">!</span><span class="ruby-ivar">@failed</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@failed</span>.<span class="ruby-identifier">empty?</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000038-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 342</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">failed?</span>&#x000A; <span class="ruby-operator">!</span><span class="ruby-ivar">@failed</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@failed</span>.<span class="ruby-identifier">empty?</span>&#x000A; <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000045'>
- <a name='M000045'> </a>
+ <div class='method public-instance' id='method-M000033'>
+ <a name='M000033'> </a>
<div class='synopsis'>
<span class='name'>inspect</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000045-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000033-source'); return false">
[show source]
</a>
- <pre id='M000045-source'><span class="ruby-comment cmt"># File lib/tryouts.rb, line 300</span>&#x000A; <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>&#x000A; [<span class="ruby-ivar">@desc</span>.<span class="ruby-identifier">inspect</span>, <span class="ruby-ivar">@test</span>.<span class="ruby-identifier">inspect</span>, <span class="ruby-ivar">@exps</span>.<span class="ruby-identifier