doc/NotifySet.html in notifyhub-0.0.1 vs doc/NotifySet.html in notifyhub-0.0.2
- old
+ new
@@ -258,11 +258,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#notify-instance_method" title="#notify (instance method)">- (Object) <strong>notify</strong>(*args) </a>
+ <a href="#notify-instance_method" title="#notify (instance method)">- (Array<Object>) <strong>notify</strong>(*args) </a>
</span>
@@ -357,18 +357,18 @@
<tr>
<td>
<pre class="lines">
-238
-239
-240
-241
-242</pre>
+246
+247
+248
+249
+250</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 238</span>
+ <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 246</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
<span class='ivar'>@id</span> <span class='op'>=</span> <span class='id identifier rubyid_id'>id</span>
<span class='ivar'>@enable</span> <span class='op'>=</span> <span class='kw'>true</span>
<span class='ivar'>@list</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
@@ -429,16 +429,16 @@
<tr>
<td>
<pre class="lines">
-232
-233
-234</pre>
+240
+241
+242</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 232</span>
+ <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 240</span>
<span class='kw'>def</span> <span class='id identifier rubyid_enable'>enable</span>
<span class='ivar'>@enable</span>
<span class='kw'>end</span></pre>
</td>
@@ -477,16 +477,16 @@
<tr>
<td>
<pre class="lines">
-298
-299
-300</pre>
+316
+317
+318</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 298</span>
+ <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 316</span>
<span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span> <span class='id identifier rubyid_idx'>idx</span> <span class='rparen'>)</span>
<span class='ivar'>@list</span><span class='lbracket'>[</span> <span class='id identifier rubyid_idx'>idx</span> <span class='rbracket'>]</span>
<span class='kw'>end</span></pre>
</td>
@@ -542,18 +542,18 @@
<tr>
<td>
<pre class="lines">
-256
-257
-258
-259
-260</pre>
+264
+265
+266
+267
+268</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 256</span>
+ <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 264</span>
<span class='kw'>def</span> <span class='id identifier rubyid_action'>action</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_action'>action</span> <span class='rparen'>)</span>
<span class='id identifier rubyid_n'>n</span> <span class='op'>=</span> <span class='const'>Notify</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_action'>action</span> <span class='rparen'>)</span>
<span class='ivar'>@list</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span> <span class='id identifier rubyid_n'>n</span>
<span class='id identifier rubyid_n'>n</span>
@@ -587,18 +587,18 @@
<tr>
<td>
<pre class="lines">
-290
-291
-292
-293
-294</pre>
+308
+309
+310
+311
+312</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 290</span>
+ <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 308</span>
<span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span>
<span class='ivar'>@list</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_n'>n</span><span class='op'>|</span>
<span class='kw'>yield</span> <span class='id identifier rubyid_n'>n</span>
<span class='kw'>end</span>
@@ -609,11 +609,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="notify-instance_method">
- - (<tt>Object</tt>) <strong>notify</strong>(*args)
+ - (<tt>Array<Object></tt>) <strong>notify</strong>(*args)
@@ -645,34 +645,70 @@
</li>
</ul>
+<p class="tag_title">Returns:</p>
+<ul class="return">
+
+ <li>
+
+
+ <span class='type'>(<tt>Array<Object></tt>)</span>
+
+
+
+ —
+ <div class='inline'>
+<p>Array or single callback return value.</p>
+</div>
+
+ </li>
+
+</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
-280
-281
-282
-283
-284
-285
-286</pre>
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 280</span>
+ <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 289</span>
<span class='kw'>def</span> <span class='id identifier rubyid_notify'>notify</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
+ <span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
<span class='kw'>if</span> <span class='ivar'>@enable</span>
<span class='ivar'>@list</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_n'>n</span><span class='op'>|</span>
- <span class='id identifier rubyid_n'>n</span><span class='period'>.</span><span class='id identifier rubyid_notify'>notify</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
+ <span class='id identifier rubyid_ret'>ret</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span> <span class='id identifier rubyid_n'>n</span><span class='period'>.</span><span class='id identifier rubyid_notify'>notify</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
<span class='kw'>end</span>
<span class='kw'>end</span>
+
+ <span class='kw'>if</span> <span class='id identifier rubyid_ret'>ret</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>==</span> <span class='int'>1</span>
+ <span class='comment'># Return single value.
+</span> <span class='id identifier rubyid_ret'>ret</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
+ <span class='kw'>else</span>
+ <span class='comment'># Return array of results.
+</span> <span class='id identifier rubyid_ret'>ret</span>
+ <span class='kw'>end</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -723,20 +759,20 @@
<tr>
<td>
<pre class="lines">
-269
-270
-271
-272
-273
-274
-275</pre>
+277
+278
+279
+280
+281
+282
+283</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 269</span>
+ <pre class="code"><span class="info file"># File 'lib/notifyhub.rb', line 277</span>
<span class='kw'>def</span> <span class='id identifier rubyid_remove'>remove</span><span class='lparen'>(</span> <span class='id identifier rubyid_notify'>notify</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
<span class='kw'>if</span> <span class='id identifier rubyid_notify'>notify</span>
<span class='ivar'>@list</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span> <span class='id identifier rubyid_notify'>notify</span> <span class='rparen'>)</span>
<span class='kw'>else</span>
@@ -751,10 +787,10 @@
</div>
</div>
<div id="footer">
- Generated on Sun Jan 19 21:55:11 2014 by
+ Generated on Tue Jan 21 18:23:01 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.6.1 (ruby-1.9.3).
</div>
</body>
\ No newline at end of file