doc/EZMQ/Subscriber.html in ezmq-0.3.7 vs doc/EZMQ/Subscriber.html in ezmq-0.4.0

- old
+ new

@@ -174,11 +174,11 @@ <span class="summary_desc"><div class='inline'> -<p>By default, waits for a message and prints it to STDOUT.</p> +<p>Like receive, but doesn&#39;t stop at one message.</p> </div></span> </li> @@ -388,11 +388,11 @@ </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> +<p>Like receive, but doesn&#39;t stop at one message.</p> </div> </div> <div class="tags"> @@ -460,28 +460,18 @@ 57 58 59 60 -61 -62 -63 -64 -65 -66</pre> +61</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 57</span> -<span class='kw'>def</span> <span class='id identifier rubyid_listen'>listen</span> +<span class='kw'>def</span> <span class='id identifier rubyid_listen'>listen</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</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='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_receive'>receive</span><span class='rparen'>)</span> - <span class='kw'>else</span> - <span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_topic'>topic</span> <span class='op'>=</span> <span class='id identifier rubyid_receive'>receive</span> - <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_topic'>topic</span> <span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_message'>message</span> <span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> - <span class='kw'>end</span> + <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_receive'>receive</span><span class='rparen'>)</span> <span class='kw'>end</span> <span class='kw'>end</span></pre> </td> </tr> </table> @@ -745,16 +735,16 @@ <tr> <td> <pre class="lines"> -79 -80 -81</pre> +74 +75 +76</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 79</span> + <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 74</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> @@ -825,16 +815,16 @@ <tr> <td> <pre class="lines"> -90 -91 -92</pre> +85 +86 +87</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 90</span> + <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 85</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> @@ -845,10 +835,10 @@ </div> </div> <div id="footer"> - Generated on Mon Feb 2 15:37:52 2015 by + Generated on Tue Feb 3 09:55:04 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