doc/TaskJuggler/TOCEntry.html in taskjuggler-0.0.8 vs doc/TaskJuggler/TOCEntry.html in taskjuggler-0.0.9

- old
+ new

@@ -129,10 +129,12 @@ <li><a href="../TaskJuggler/AttributeBase.html">TaskJuggler::AttributeBase</a></li> <li><a href="../TaskJuggler/AttributeDefinition.html">TaskJuggler::AttributeDefinition</a></li> + <li><a href="../TaskJuggler/AttributeOverwrite.html">TaskJuggler::AttributeOverwrite</a></li> + <li><a href="../TaskJuggler/BatchProcessor.html">TaskJuggler::BatchProcessor</a></li> <li><a href="../TaskJuggler/Booking.html">TaskJuggler::Booking</a></li> <li><a href="../TaskJuggler/BookingListAttribute.html">TaskJuggler::BookingListAttribute</a></li> @@ -207,10 +209,12 @@ <li><a href="../TaskJuggler/HTMLGraphics.html">TaskJuggler::HTMLGraphics</a></li> <li><a href="../TaskJuggler/Interval.html">TaskJuggler::Interval</a></li> + <li><a href="../TaskJuggler/IntervalList.html">TaskJuggler::IntervalList</a></li> + <li><a href="../TaskJuggler/IntervalListAttribute.html">TaskJuggler::IntervalListAttribute</a></li> <li><a href="../TaskJuggler/JobInfo.html">TaskJuggler::JobInfo</a></li> <li><a href="../TaskJuggler/Journal.html">TaskJuggler::Journal</a></li> @@ -239,10 +243,12 @@ <li><a href="../TaskJuggler/LogicalExpression.html">TaskJuggler::LogicalExpression</a></li> <li><a href="../TaskJuggler/LogicalExpressionAttribute.html">TaskJuggler::LogicalExpressionAttribute</a></li> + <li><a href="../TaskJuggler/LogicalExpressionListAttribute.html">TaskJuggler::LogicalExpressionListAttribute</a></li> + <li><a href="../TaskJuggler/LogicalFlag.html">TaskJuggler::LogicalFlag</a></li> <li><a href="../TaskJuggler/LogicalFunction.html">TaskJuggler::LogicalFunction</a></li> <li><a href="../TaskJuggler/LogicalOperation.html">TaskJuggler::LogicalOperation</a></li> @@ -519,10 +525,12 @@ <li><a href="../TaskJuggler/VimSyntax.html">TaskJuggler::VimSyntax</a></li> <li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li> + <li><a href="../TaskJuggler/WelcomePage.html">TaskJuggler::WelcomePage</a></li> + <li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li> <li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li> <li><a href="../TaskJuggler/XMLBlob.html">TaskJuggler::XMLBlob</a></li> @@ -545,12 +553,10 @@ <li><a href="../RuntimeConfig.html">RuntimeConfig</a></li> <li><a href="../String.html">String</a></li> - <li><a href="../StringIO.html">StringIO</a></li> - </ul> <div id="no-class-search-results" style="display: none;">No matching classes.</div> </div> @@ -658,17 +664,17 @@ <div class="method-source-code" id="new-source"> <pre> - <span class="ruby-comment cmt"># File lib/TOCEntry.rb, line 31</span> -31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">number</span>, <span class="ruby-identifier">title</span>, <span class="ruby-identifier">file</span>, <span class="ruby-identifier">tag</span> = <span class="ruby-keyword kw">nil</span>) -32: <span class="ruby-ivar">@number</span> = <span class="ruby-identifier">number</span> -33: <span class="ruby-ivar">@title</span> = <span class="ruby-identifier">title</span> -34: <span class="ruby-ivar">@file</span> = <span class="ruby-identifier">file</span> -35: <span class="ruby-ivar">@tag</span> = <span class="ruby-identifier">tag</span> -36: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/TOCEntry.rb, line 32</span> +32: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">number</span>, <span class="ruby-identifier">title</span>, <span class="ruby-identifier">file</span>, <span class="ruby-identifier">tag</span> = <span class="ruby-keyword kw">nil</span>) +33: <span class="ruby-ivar">@number</span> = <span class="ruby-identifier">number</span> +34: <span class="ruby-ivar">@title</span> = <span class="ruby-identifier">title</span> +35: <span class="ruby-ivar">@file</span> = <span class="ruby-identifier">file</span> +36: <span class="ruby-ivar">@tag</span> = <span class="ruby-identifier">tag</span> +37: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -705,35 +711,35 @@ <div class="method-source-code" id="to-html-source"> <pre> - <span class="ruby-comment cmt"># File lib/TOCEntry.rb, line 40</span> -40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_html</span> -41: <span class="ruby-identifier">html</span> = [] -42: -43: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">level</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> -44: <span class="ruby-comment cmt"># A another table line for some extra distance above main chapters.</span> -45: <span class="ruby-identifier">html</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">tr</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>)) -46: <span class="ruby-identifier">tr</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>)) -47: <span class="ruby-identifier">td</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'div'</span>, <span class="ruby-value str">'style'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'height:10px'</span>) -48: <span class="ruby-keyword kw">end</span> -49: -50: <span class="ruby-identifier">fontSizes</span> = [ <span class="ruby-value">20</span>, <span class="ruby-value">17</span>, <span class="ruby-value">15</span> ] -51: <span class="ruby-identifier">tr</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>, <span class="ruby-value str">'style'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;font-size:#{fontSizes[level]}px;&quot;</span>) -52: <span class="ruby-identifier">tr</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, -53: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;padding-left:#{10 * level}px&quot;</span>)) -54: <span class="ruby-identifier">td</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@number</span>) -55: <span class="ruby-identifier">tr</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, -56: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;padding-left:#{5 + 20 * level}px&quot;</span>)) -57: <span class="ruby-identifier">tag</span> = <span class="ruby-ivar">@tag</span> <span class="ruby-operator">?</span> <span class="ruby-node">&quot;##{@tag}&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">''</span> -58: <span class="ruby-identifier">td</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">a</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'a'</span>, <span class="ruby-value str">'href'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;#{@file}.html#{tag}&quot;</span>)) -59: <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@title</span>) -60: <span class="ruby-identifier">html</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">tr</span> -61: -62: <span class="ruby-identifier">html</span> -63: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/TOCEntry.rb, line 41</span> +41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_html</span> +42: <span class="ruby-identifier">html</span> = [] +43: +44: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">level</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> +45: <span class="ruby-comment cmt"># A another table line for some extra distance above main chapters.</span> +46: <span class="ruby-identifier">html</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">tr</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>)) +47: <span class="ruby-identifier">tr</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>)) +48: <span class="ruby-identifier">td</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'div'</span>, <span class="ruby-value str">'style'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'height:10px'</span>) +49: <span class="ruby-keyword kw">end</span> +50: +51: <span class="ruby-identifier">fontSizes</span> = [ <span class="ruby-value">20</span>, <span class="ruby-value">17</span>, <span class="ruby-value">15</span> ] +52: <span class="ruby-identifier">tr</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'tr'</span>, <span class="ruby-value str">'style'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;font-size:#{fontSizes[level]}px;&quot;</span>) +53: <span class="ruby-identifier">tr</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, +54: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;padding-left:#{10 * level}px&quot;</span>)) +55: <span class="ruby-identifier">td</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@number</span>) +56: <span class="ruby-identifier">tr</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">td</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'td'</span>, +57: <span class="ruby-value str">'style'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;padding-left:#{5 + 20 * level}px&quot;</span>)) +58: <span class="ruby-identifier">tag</span> = <span class="ruby-ivar">@tag</span> <span class="ruby-operator">?</span> <span class="ruby-node">&quot;##{@tag}&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">''</span> +59: <span class="ruby-identifier">td</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">a</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'a'</span>, <span class="ruby-value str">'href'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;#{@file}.html#{tag}&quot;</span>)) +60: <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@title</span>) +61: <span class="ruby-identifier">html</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">tr</span> +62: +63: <span class="ruby-identifier">html</span> +64: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -769,15 +775,15 @@ <div class="method-source-code" id="level-source"> <pre> - <span class="ruby-comment cmt"># File lib/TOCEntry.rb, line 69</span> -69: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">level</span> -70: <span class="ruby-identifier">lev</span> = <span class="ruby-value">0</span> -71: <span class="ruby-ivar">@number</span>.<span class="ruby-identifier">each_utf8_char</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">lev</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">c</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'.'</span> } -72: <span class="ruby-identifier">lev</span> -73: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/TOCEntry.rb, line 70</span> +70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">level</span> +71: <span class="ruby-identifier">lev</span> = <span class="ruby-value">0</span> +72: <span class="ruby-ivar">@number</span>.<span class="ruby-identifier">each_utf8_char</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">lev</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">c</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'.'</span> } +73: <span class="ruby-identifier">lev</span> +74: <span class="ruby-keyword kw">end</span></pre> </div> </div>