doc/RecordImpl.html in marc4j4r-0.1.0 vs doc/RecordImpl.html in marc4j4r-0.1.2
- old
+ new
@@ -347,20 +347,20 @@
<tr>
<td>
<pre class="lines">
+163
+164
165
166
167
168
-169
-170
-171</pre>
+169</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 165</span>
+ <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 163</span>
<span class='def def kw'>def</span> <span class='aref op'>[]</span> <span class='tag identifier id'>tag</span>
<span class='if if kw'>if</span> <span class='defined? defined kw'>defined?</span> <span class='@hashedtags ivar id'>@hashedtags</span>
<span class='return return kw'>return</span> <span class='@hashedtags ivar id'>@hashedtags</span><span class='lbrack token'>[</span><span class='tag identifier id'>tag</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span>
<span class='else else kw'>else</span>
@@ -395,18 +395,18 @@
<tr>
<td>
<pre class="lines">
+152
+153
154
155
-156
-157
-158</pre>
+156</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 154</span>
+ <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 152</span>
<span class='def def kw'>def</span> <span class='each identifier id'>each</span>
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='getVariableFields identifier id'>getVariableFields</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='f identifier id'>f</span><span class='bitor op'>|</span>
<span class='yield yield kw'>yield</span> <span class='f identifier id'>f</span>
<span class='end end kw'>end</span>
@@ -428,27 +428,26 @@
<tr>
<td>
<pre class="lines">
+205
+206
207
208
209
210
211
212
213
214
215
216
-217
-218
-219
-220</pre>
+217</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 207</span>
+ <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 205</span>
<span class='def def kw'>def</span> <span class='find_by_tag identifier id'>find_by_tag</span><span class='lparen token'>(</span><span class='tags identifier id'>tags</span><span class='comma token'>,</span> <span class='originalorder identifier id'>originalorder</span> <span class='assign token'>=</span> <span class='false false kw'>false</span><span class='rparen token'>)</span>
<span class='if if kw'>if</span> <span class='notop op'>!</span><span class='tags identifier id'>tags</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span> <span class='Array constant id'>Array</span>
<span class='tags identifier id'>tags</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='tags identifier id'>tags</span><span class='rbrack token'>]</span>
<span class='end end kw'>end</span>
@@ -456,11 +455,10 @@
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='hashify identifier id'>hashify</span>
<span class='end end kw'>end</span>
<span class='if if kw'>if</span> <span class='originalorder identifier id'>originalorder</span>
<span class='return return kw'>return</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='find_all identifier id'>find_all</span> <span class='lbrace token'>{</span><span class='bitor op'>|</span><span class='f identifier id'>f</span><span class='bitor op'>|</span> <span class='tags identifier id'>tags</span><span class='dot token'>.</span><span class='include? fid id'>include?</span> <span class='f identifier id'>f</span><span class='dot token'>.</span><span class='tag identifier id'>tag</span><span class='rbrace token'>}</span>
<span class='else else kw'>else</span>
- <span class='comment val'># puts "Tags is #{tags}: got #{@hashedtags.values_at(*tags)}"</span>
<span class='return return kw'>return</span> <span class='@hashedtags ivar id'>@hashedtags</span><span class='dot token'>.</span><span class='values_at identifier id'>values_at</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='tags identifier id'>tags</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='flatten identifier id'>flatten</span><span class='dot token'>.</span><span class='compact identifier id'>compact</span>
<span class='end end kw'>end</span>
<span class='end end kw'>end</span>
</pre>
</td>
@@ -491,24 +489,22 @@
<tr>
<td>
<pre class="lines">
+129
130
131
132
133
134
-135
-136
-137</pre>
+135</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 130</span>
+ <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 129</span>
<span class='def def kw'>def</span> <span class='hashify identifier id'>hashify</span>
- <span class='return return kw'>return</span> <span class='if if_mod kw'>if</span> <span class='@hashedtags ivar id'>@hashedtags</span> <span class='comment val'># don't do it more than once</span>
<span class='@hashedtags ivar id'>@hashedtags</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='getVariableFields identifier id'>getVariableFields</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='f identifier id'>f</span><span class='bitor op'>|</span>
<span class='@hashedtags ivar id'>@hashedtags</span><span class='lbrack token'>[</span><span class='f identifier id'>f</span><span class='dot token'>.</span><span class='tag identifier id'>tag</span><span class='rbrack token'>]</span> <span class='opasgn op'>||=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
<span class='@hashedtags ivar id'>@hashedtags</span><span class='lbrack token'>[</span><span class='f identifier id'>f</span><span class='dot token'>.</span><span class='tag identifier id'>tag</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='push identifier id'>push</span> <span class='f identifier id'>f</span>
<span class='end end kw'>end</span>
@@ -541,16 +537,16 @@
<tr>
<td>
<pre class="lines">
-149
-150
-151</pre>
+147
+148
+149</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 149</span>
+ <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 147</span>
<span class='def def kw'>def</span> <span class='leader identifier id'>leader</span>
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='get_leader identifier id'>get_leader</span><span class='dot token'>.</span><span class='toString identifier id'>toString</span>
<span class='end end kw'>end</span>
</pre>
@@ -581,20 +577,20 @@
<tr>
<td>
<pre class="lines">
+138
+139
140
141
142
143
-144
-145
-146</pre>
+144</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 140</span>
+ <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 138</span>
<span class='def def kw'>def</span> <span class='to_s identifier id'>to_s</span>
<span class='arr identifier id'>arr</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='string val'>'LEADER '</span> <span class='plus op'>+</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='leader identifier id'>leader</span><span class='rbrack token'>]</span>
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='f identifier id'>f</span><span class='bitor op'>|</span>
<span class='arr identifier id'>arr</span><span class='dot token'>.</span><span class='push identifier id'>push</span> <span class='f identifier id'>f</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span>
@@ -648,21 +644,21 @@
<tr>
<td>
<pre class="lines">
+222
+223
+224
225
226
227
228
-229
-230
-231
-232</pre>
+229</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 225</span>
+ <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 222</span>
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span>
<span class='return return kw'>return</span> <span class='@xml ivar id'>@xml</span> <span class='if if_mod kw'>if</span> <span class='@xml ivar id'>@xml</span>
<span class='@xml ivar id'>@xml</span> <span class='assign token'>=</span> <span class='java identifier id'>java</span><span class='dot token'>.</span><span class='io identifier id'>io</span><span class='dot token'>.</span><span class='StringWriter constant id'>StringWriter</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
<span class='res identifier id'>res</span> <span class='assign token'>=</span> <span class='javax identifier id'>javax</span><span class='dot token'>.</span><span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='transform identifier id'>transform</span><span class='dot token'>.</span><span class='stream identifier id'>stream</span><span class='dot token'>.</span><span class='StreamResult constant id'>StreamResult</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='@xml ivar id'>@xml</span><span class='rparen token'>)</span>
@@ -679,10 +675,10 @@
</div>
</div>
<div id="footer">
- Generated on Sun Feb 14 22:11:52 2010 by
+ Generated on Fri Feb 12 16:38:06 2010 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
0.5.3 (ruby-1.8.7).
</div>
</body>
\ No newline at end of file