doc/EZMQ/Subscriber.html in ezmq-0.2.0 vs doc/EZMQ/Subscriber.html in ezmq-0.3.0
- old
+ new
@@ -191,34 +191,10 @@
<li class="public ">
<span class="summary_signature">
- <a href="#listen-instance_method" title="#listen (instance method)">- (void) <strong>listen</strong> {|message| ... }</a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'>
-<p>By default, waits for a message and prints it to STDOUT.</p>
-</div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
<a href="#subscribe-instance_method" title="#subscribe (instance method)">- (Boolean) <strong>subscribe</strong>(topic) </a>
</span>
@@ -273,11 +249,11 @@
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Socket.html" title="EZMQ::Socket (class)">Socket</a></span></h3>
- <p class="inherited"><span class='object_link'><a href="Socket.html#bind-instance_method" title="EZMQ::Socket#bind (method)">#bind</a></span>, <span class='object_link'><a href="Socket.html#connect-instance_method" title="EZMQ::Socket#connect (method)">#connect</a></span>, <span class='object_link'><a href="Socket.html#receive-instance_method" title="EZMQ::Socket#receive (method)">#receive</a></span>, <span class='object_link'><a href="Socket.html#send-instance_method" title="EZMQ::Socket#send (method)">#send</a></span></p>
+ <p class="inherited"><span class='object_link'><a href="Socket.html#bind-instance_method" title="EZMQ::Socket#bind (method)">#bind</a></span>, <span class='object_link'><a href="Socket.html#connect-instance_method" title="EZMQ::Socket#connect (method)">#connect</a></span>, <span class='object_link'><a href="Socket.html#listen-instance_method" title="EZMQ::Socket#listen (method)">#listen</a></span>, <span class='object_link'><a href="Socket.html#receive-instance_method" title="EZMQ::Socket#receive (method)">#receive</a></span>, <span class='object_link'><a href="Socket.html#send-instance_method" title="EZMQ::Socket#send (method)">#send</a></span></p>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
@@ -360,17 +336,17 @@
<tr>
<td>
<pre class="lines">
-218
-219
-220
-221</pre>
+232
+233
+234
+235</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 218</span>
+ <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 232</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
<span class='kw'>super</span> <span class='symbol'>:connect</span><span class='comma'>,</span> <span class='const'>ZMQ</span><span class='op'>::</span><span class='const'>SUB</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span>
<span class='id identifier rubyid_subscribe'>subscribe</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:topic</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:topic</span><span class='rbracket'>]</span>
<span class='kw'>end</span></pre>
@@ -410,16 +386,16 @@
<tr>
<td>
<pre class="lines">
-206
-207
-208</pre>
+220
+221
+222</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 206</span>
+ <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 220</span>
<span class='kw'>def</span> <span class='id identifier rubyid_action'>action</span>
<span class='ivar'>@action</span>
<span class='kw'>end</span></pre>
</td>
@@ -433,103 +409,12 @@
<div id="instance_method_details" class="method_details_list">
<h2>Instance Method Details</h2>
<div class="method_details first">
- <h3 class="signature first" id="listen-instance_method">
+ <h3 class="signature first" id="subscribe-instance_method">
- - (<tt>void</tt>) <strong>listen</strong> {|message| ... }
-
-
-
-
-
-</h3><div class="docstring">
- <div class="discussion">
- <p class="note returns_void">This method returns an undefined value.</p>
-<p>By default, waits for a message and prints it to STDOUT.</p>
-
-
- </div>
-</div>
-<div class="tags">
-
-<p class="tag_title">Yields:</p>
-<ul class="yield">
-
- <li>
-
-
- <span class='type'></span>
-
-
-
-
- <div class='inline'>
-<p>message passes the message received to the block.</p>
-</div>
-
- </li>
-
-</ul>
-<p class="tag_title">Yield Parameters:</p>
-<ul class="yieldparam">
-
- <li>
-
- <span class='name'>message</span>
-
-
- <span class='type'>(<tt>String</tt>)</span>
-
-
-
- —
- <div class='inline'>
-<p>the message received.</p>
-</div>
-
- </li>
-
-</ul>
-
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-256
-257
-258
-259
-260
-261
-262
-263
-264</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 256</span>
-
-<span class='kw'>def</span> <span class='id identifier rubyid_listen'>listen</span>
- <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
- <span class='kw'>yield</span> <span class='id identifier rubyid_receive'>receive</span>
- <span class='kw'>else</span>
- <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_receive'>receive</span>
- <span class='kw'>end</span>
- <span class='kw'>end</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <h3 class="signature " id="subscribe-instance_method">
-
- (<tt>Boolean</tt>) <strong>subscribe</strong>(topic)
@@ -600,16 +485,16 @@
<tr>
<td>
<pre class="lines">
-234
-235
-236</pre>
+248
+249
+250</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 234</span>
+ <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 248</span>
<span class='kw'>def</span> <span class='id identifier rubyid_subscribe'>subscribe</span><span class='lparen'>(</span><span class='id identifier rubyid_topic'>topic</span><span class='rparen'>)</span>
<span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_setsockopt'>setsockopt</span><span class='lparen'>(</span><span class='const'>ZMQ</span><span class='op'>::</span><span class='const'>SUBSCRIBE</span><span class='comma'>,</span> <span class='id identifier rubyid_topic'>topic</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='int'>0</span>
<span class='kw'>end</span></pre>
</td>
@@ -680,16 +565,16 @@
<tr>
<td>
<pre class="lines">
-245
-246
-247</pre>
+259
+260
+261</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 245</span>
+ <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 259</span>
<span class='kw'>def</span> <span class='id identifier rubyid_unsubscribe'>unsubscribe</span><span class='lparen'>(</span><span class='id identifier rubyid_topic'>topic</span><span class='rparen'>)</span>
<span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_setsockopt'>setsockopt</span><span class='lparen'>(</span><span class='const'>ZMQ</span><span class='op'>::</span><span class='const'>UNSUBSCRIBE</span><span class='comma'>,</span> <span class='id identifier rubyid_topic'>topic</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='int'>0</span>
<span class='kw'>end</span></pre>
</td>
@@ -700,10 +585,10 @@
</div>
</div>
<div id="footer">
- Generated on Fri Jan 9 13:06:27 2015 by
+ Generated on Sun Jan 11 14:20:10 2015 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.6 (ruby-2.0.0).
</div>
</body>
\ No newline at end of file