doc/TaskJuggler/JournalEntryList.html in taskjuggler-0.0.5 vs doc/TaskJuggler/JournalEntryList.html in taskjuggler-0.0.6
- old
+ new
@@ -67,27 +67,27 @@
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
- <li><a href="#M001177">::new</a></li>
+ <li><a href="#method-c-new">::new</a></li>
- <li><a href="#M001180">#+</a></li>
+ <li><a href="#method-i-%3C%3C">#<<</a></li>
- <li><a href="#M001179">#<<</a></li>
+ <li><a href="#method-i-%5B%5D">#[]</a></li>
- <li><a href="#M001181">#[]</a></li>
+ <li><a href="#method-i-count">#count</a></li>
- <li><a href="#M001178">#count</a></li>
+ <li><a href="#method-i-each">#each</a></li>
- <li><a href="#M001182">#each</a></li>
+ <li><a href="#method-i-empty%3F">#empty?</a></li>
- <li><a href="#M001183">#include?</a></li>
+ <li><a href="#method-i-include%3F">#include?</a></li>
- <li><a href="#M001184">#last</a></li>
+ <li><a href="#method-i-last">#last</a></li>
- <li><a href="#M001185">#sort</a></li>
+ <li><a href="#method-i-sort%21">#sort!</a></li>
</ul>
</div>
@@ -100,10 +100,12 @@
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
+ <li class="file"><a href="../CHANGELOG.html">CHANGELOG</a></li>
+
<li class="file"><a href="../COPYING.html">COPYING</a></li>
<li class="file"><a href="../README.html">README</a></li>
</ul>
@@ -269,10 +271,12 @@
<li><a href="../TaskJuggler/NikuReport.html">TaskJuggler::NikuReport</a></li>
<li><a href="../TaskJuggler/NikuResource.html">TaskJuggler::NikuResource</a></li>
+ <li><a href="../TaskJuggler/NodeListAttribute.html">TaskJuggler::NodeListAttribute</a></li>
+
<li><a href="../TaskJuggler/OnShiftCache.html">TaskJuggler::OnShiftCache</a></li>
<li><a href="../TaskJuggler/ProcessIntercom.html">TaskJuggler::ProcessIntercom</a></li>
<li><a href="../TaskJuggler/ProcessIntercomIface.html">TaskJuggler::ProcessIntercomIface</a></li>
@@ -283,10 +287,12 @@
<li><a href="../TaskJuggler/ProjectBrokerIface.html">TaskJuggler::ProjectBrokerIface</a></li>
<li><a href="../TaskJuggler/ProjectFileParser.html">TaskJuggler::ProjectFileParser</a></li>
+ <li><a href="../TaskJuggler/ProjectFileScanner.html">TaskJuggler::ProjectFileScanner</a></li>
+
<li><a href="../TaskJuggler/ProjectRecord.html">TaskJuggler::ProjectRecord</a></li>
<li><a href="../TaskJuggler/ProjectServer.html">TaskJuggler::ProjectServer</a></li>
<li><a href="../TaskJuggler/ProjectServerIface.html">TaskJuggler::ProjectServerIface</a></li>
@@ -299,16 +305,20 @@
<li><a href="../TaskJuggler/PropertyTreeNode.html">TaskJuggler::PropertyTreeNode</a></li>
<li><a href="../TaskJuggler/Query.html">TaskJuggler::Query</a></li>
+ <li><a href="../TaskJuggler/RTFHandlers.html">TaskJuggler::RTFHandlers</a></li>
+
<li><a href="../TaskJuggler/RTFNavigator.html">TaskJuggler::RTFNavigator</a></li>
<li><a href="../TaskJuggler/RTFQuery.html">TaskJuggler::RTFQuery</a></li>
<li><a href="../TaskJuggler/RTFReport.html">TaskJuggler::RTFReport</a></li>
+ <li><a href="../TaskJuggler/RTFReportLink.html">TaskJuggler::RTFReportLink</a></li>
+
<li><a href="../TaskJuggler/RealFormat.html">TaskJuggler::RealFormat</a></li>
<li><a href="../TaskJuggler/RealFormatAttribute.html">TaskJuggler::RealFormatAttribute</a></li>
<li><a href="../TaskJuggler/ReferenceAttribute.html">TaskJuggler::ReferenceAttribute</a></li>
@@ -323,10 +333,12 @@
<li><a href="../TaskJuggler/ReportServerIface.html">TaskJuggler::ReportServerIface</a></li>
<li><a href="../TaskJuggler/ReportServerRecord.html">TaskJuggler::ReportServerRecord</a></li>
+ <li><a href="../TaskJuggler/ReportServlet.html">TaskJuggler::ReportServlet</a></li>
+
<li><a href="../TaskJuggler/ReportTable.html">TaskJuggler::ReportTable</a></li>
<li><a href="../TaskJuggler/ReportTableCell.html">TaskJuggler::ReportTableCell</a></li>
<li><a href="../TaskJuggler/ReportTableColumn.html">TaskJuggler::ReportTableColumn</a></li>
@@ -451,10 +463,12 @@
<li><a href="../TaskJuggler/TextScanner/BufferStreamHandle.html">TaskJuggler::TextScanner::BufferStreamHandle</a></li>
<li><a href="../TaskJuggler/TextScanner/FileStreamHandle.html">TaskJuggler::TextScanner::FileStreamHandle</a></li>
+ <li><a href="../TaskJuggler/TextScanner/MacroStackEntry.html">TaskJuggler::TextScanner::MacroStackEntry</a></li>
+
<li><a href="../TaskJuggler/TextScanner/StreamHandle.html">TaskJuggler::TextScanner::StreamHandle</a></li>
<li><a href="../TaskJuggler/TimeSheet.html">TaskJuggler::TimeSheet</a></li>
<li><a href="../TaskJuggler/TimeSheetReceiver.html">TaskJuggler::TimeSheetReceiver</a></li>
@@ -495,12 +509,16 @@
<li><a href="../TaskJuggler/TjpExportRE.html">TaskJuggler::TjpExportRE</a></li>
<li><a href="../TaskJuggler/TjpSyntaxRules.html">TaskJuggler::TjpSyntaxRules</a></li>
+ <li><a href="../TaskJuggler/URLParameter.html">TaskJuggler::URLParameter</a></li>
+
<li><a href="../TaskJuggler/UserManual.html">TaskJuggler::UserManual</a></li>
+ <li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</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>
@@ -523,10 +541,12 @@
<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>
@@ -558,11 +578,11 @@
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="new-method" class="method-detail ">
- <a name="M001177"></a>
+ <a name="method-c-new"></a>
<div class="method-heading">
<span class="method-name">new</span><span
class="method-args">()</span>
@@ -577,15 +597,15 @@
<div class="method-source-code"
id="new-source">
<pre>
- <span class="ruby-comment cmt"># File lib/Journal.rb, line 67</span>
-67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
-68: <span class="ruby-ivar">@entries</span> = []
-69: <span class="ruby-ivar">@sorted</span> = <span class="ruby-keyword kw">false</span>
-70: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/Journal.rb, line 68</span>
+68: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
+69: <span class="ruby-ivar">@entries</span> = []
+70: <span class="ruby-ivar">@sorted</span> = <span class="ruby-keyword kw">false</span>
+71: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -599,36 +619,37 @@
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="--method" class="method-detail ">
- <a name="M001180"></a>
+ <a name="method-i-%3C%3C"></a>
<div class="method-heading">
- <span class="method-name">+</span><span
- class="method-args">(list)</span>
+ <span class="method-name"><<</span><span
+ class="method-args">(entry)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>
-Add a list of <a href="JournalEntry.html">JournalEntry</a> objects to the
-existing list. The list will be marked unsorted.
+Add a new <a href="JournalEntry.html">JournalEntry</a> to the list. The
+list will be marked as unsorted.
</p>
<div class="method-source-code"
id="--source">
<pre>
- <span class="ruby-comment cmt"># File lib/Journal.rb, line 85</span>
-85: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">list</span>)
-86: <span class="ruby-ivar">@entries</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">list</span>
-87: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/Journal.rb, line 79</span>
+79: <span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">entry</span>)
+80: <span class="ruby-ivar">@entries</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">entry</span>
+81: <span class="ruby-ivar">@sorted</span> = <span class="ruby-keyword kw">false</span>
+82: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -636,149 +657,147 @@
</div>
<div id="--method" class="method-detail ">
- <a name="M001179"></a>
+ <a name="method-i-%5B%5D"></a>
<div class="method-heading">
- <span class="method-name"><<</span><span
- class="method-args">(entry)</span>
+ <span class="method-name">[]</span><span
+ class="method-args">(index)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>
-Add a new <a href="JournalEntry.html">JournalEntry</a> to the list. The
-list will be marked as unsorted.
+Return the <em>index</em>-th entry.
</p>
<div class="method-source-code"
id="--source">
<pre>
- <span class="ruby-comment cmt"># File lib/Journal.rb, line 78</span>
-78: <span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">entry</span>)
-79: <span class="ruby-ivar">@entries</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">entry</span>
-80: <span class="ruby-ivar">@sorted</span> = <span class="ruby-keyword kw">false</span>
-81: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/Journal.rb, line 93</span>
+93: <span class="ruby-keyword kw">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">index</span>)
+94: <span class="ruby-identifier">sort!</span>
+95: <span class="ruby-ivar">@entries</span>[<span class="ruby-identifier">index</span>]
+96: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
- <div id="--method" class="method-detail ">
- <a name="M001181"></a>
+ <div id="count-method" class="method-detail ">
+ <a name="method-i-count"></a>
<div class="method-heading">
- <span class="method-name">[]</span><span
- class="method-args">(index)</span>
+ <span class="method-name">count</span><span
+ class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>
-Return the <em>index</em>-th entry.
+Return the number of entries.
</p>
<div class="method-source-code"
- id="--source">
+ id="count-source">
<pre>
- <span class="ruby-comment cmt"># File lib/Journal.rb, line 90</span>
-90: <span class="ruby-keyword kw">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">index</span>)
-91: <span class="ruby-identifier">sort</span>
-92: <span class="ruby-ivar">@entries</span>[<span class="ruby-identifier">index</span>]
-93: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/Journal.rb, line 74</span>
+74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>
+75: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">length</span>
+76: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
- <div id="count-method" class="method-detail ">
- <a name="M001178"></a>
+ <div id="each-method" class="method-detail ">
+ <a name="method-i-each"></a>
<div class="method-heading">
- <span class="method-name">count</span><span
+ <span class="method-name">each</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>
-Return the number of entries.
+The well known iterator. The list will be sorted first.
</p>
<div class="method-source-code"
- id="count-source">
+ id="each-source">
<pre>
- <span class="ruby-comment cmt"># File lib/Journal.rb, line 73</span>
-73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>
-74: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">length</span>
-75: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/Journal.rb, line 99</span>
+ 99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
+100: <span class="ruby-identifier">sort!</span>
+101: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">entry</span><span class="ruby-operator">|</span>
+102: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">entry</span>
+103: <span class="ruby-keyword kw">end</span>
+104: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
- <div id="each-method" class="method-detail ">
- <a name="M001182"></a>
+ <div id="empty--method" class="method-detail ">
+ <a name="method-i-empty%3F"></a>
<div class="method-heading">
- <span class="method-name">each</span><span
+ <span class="method-name">empty?</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>
-The well known iterator. The list will be sorted first.
+Like Array::empty?
</p>
<div class="method-source-code"
- id="each-source">
+ id="empty--source">
<pre>
- <span class="ruby-comment cmt"># File lib/Journal.rb, line 96</span>
- 96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
- 97: <span class="ruby-identifier">sort</span>
- 98: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">entry</span><span class="ruby-operator">|</span>
- 99: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">entry</span>
-100: <span class="ruby-keyword kw">end</span>
-101: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/Journal.rb, line 107</span>
+107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>
+108: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">empty?</span>
+109: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -786,11 +805,11 @@
</div>
<div id="include--method" class="method-detail ">
- <a name="M001183"></a>
+ <a name="method-i-include%3F"></a>
<div class="method-heading">
<span class="method-name">include?</span><span
class="method-args">(entry)</span>
@@ -807,14 +826,14 @@
<div class="method-source-code"
id="include--source">
<pre>
- <span class="ruby-comment cmt"># File lib/Journal.rb, line 104</span>
-104: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">entry</span>)
-105: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">entry</span>)
-106: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/Journal.rb, line 112</span>
+112: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">entry</span>)
+113: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">entry</span>)
+114: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -822,11 +841,11 @@
</div>
<div id="last-method" class="method-detail ">
- <a name="M001184"></a>
+ <a name="method-i-last"></a>
<div class="method-heading">
<span class="method-name">last</span><span
class="method-args">(date = nil)</span>
@@ -847,50 +866,44 @@
<div class="method-source-code"
id="last-source">
<pre>
- <span class="ruby-comment cmt"># File lib/Journal.rb, line 113</span>
-113: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last</span>(<span class="ruby-identifier">date</span> = <span class="ruby-keyword kw">nil</span>)
-114: <span class="ruby-identifier">result</span> = []
-115: <span class="ruby-identifier">sort</span>
-116: <span class="ruby-comment cmt"># If we have no date, return the latest entry.</span>
-117: <span class="ruby-keyword kw">return</span> [ <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">last</span> ] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">date</span>
-118:
-119: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">reverse_each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span>
-120: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">empty?</span>
-121: <span class="ruby-identifier">result</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">e</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator"><=</span> <span class="ruby-identifier">date</span>
-122: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">date</span>
-123: <span class="ruby-identifier">result</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">e</span>
-124: <span class="ruby-keyword kw">else</span>
-125: <span class="ruby-keyword kw">break</span>
-126: <span class="ruby-keyword kw">end</span>
-127: <span class="ruby-keyword kw">end</span>
-128: <span class="ruby-identifier">result</span>
-129: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/Journal.rb, line 121</span>
+121: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last</span>(<span class="ruby-identifier">date</span> = <span class="ruby-keyword kw">nil</span>)
+122: <span class="ruby-identifier">result</span> = []
+123: <span class="ruby-identifier">sort!</span>
+124: <span class="ruby-comment cmt"># If we have no date, return the latest entry.</span>
+125: <span class="ruby-keyword kw">return</span> [ <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">last</span> ] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">date</span>
+126:
+127: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">reverse_each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span>
+128: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">empty?</span>
+129: <span class="ruby-identifier">result</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">e</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator"><=</span> <span class="ruby-identifier">date</span>
+130: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">date</span>
+131: <span class="ruby-identifier">result</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">e</span>
+132: <span class="ruby-keyword kw">else</span>
+133: <span class="ruby-keyword kw">break</span>
+134: <span class="ruby-keyword kw">end</span>
+135: <span class="ruby-keyword kw">end</span>
+136: <span class="ruby-identifier">result</span>
+137: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
- </div>
-
- <div id="private-instance-method-details" class="method-section section">
- <h3 class="section-header">Private Instance Methods</h3>
+ <div id="sort--method" class="method-detail ">
+ <a name="method-i-sort%21"></a>
-
- <div id="sort-method" class="method-detail ">
- <a name="M001185"></a>
-
<div class="method-heading">
- <span class="method-name">sort</span><span
+ <span class="method-name">sort!</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
@@ -903,23 +916,27 @@
</p>
<div class="method-source-code"
- id="sort-source">
+ id="sort--source">
<pre>
- <span class="ruby-comment cmt"># File lib/Journal.rb, line 135</span>
-135: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sort</span>
-136: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@sorted</span>
-137:
-138: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">sort!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator">?</span>
-139: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator">:</span>
-140: (<span class="ruby-identifier">a</span>.<span class="ruby-identifier">alertLevel</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">alertLevel</span> <span class="ruby-operator">?</span>
-141: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">alertLevel</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">alertLevel</span> <span class="ruby-operator">:</span>
-142: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">property</span>.<span class="ruby-identifier">sequenceNo</span> <span class="ruby-operator"><=></span>
-143: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">property</span>.<span class="ruby-identifier">sequenceNo</span>) }
-144: <span class="ruby-ivar">@sorted</span> = <span class="ruby-keyword kw">true</span>
-145: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/Journal.rb, line 141</span>
+141: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sort!</span>
+142: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
+143: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">sort!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span>) }
+144: <span class="ruby-keyword kw">else</span>
+145: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@sorted</span>
+146:
+147: <span class="ruby-ivar">@entries</span>.<span class="ruby-identifier">sort!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator">?</span>
+148: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">date</span> <span class="ruby-operator">:</span>
+149: (<span class="ruby-identifier">a</span>.<span class="ruby-identifier">alertLevel</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">alertLevel</span> <span class="ruby-operator">?</span>
+150: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">alertLevel</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">alertLevel</span> <span class="ruby-operator">:</span>
+151: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">property</span>.<span class="ruby-identifier">sequenceNo</span> <span class="ruby-operator"><=></span>
+152: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">property</span>.<span class="ruby-identifier">sequenceNo</span>) }
+153: <span class="ruby-keyword kw">end</span>
+154: <span class="ruby-ivar">@sorted</span> = <span class="ruby-keyword kw">true</span>
+155: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>