doc/EZMQ/Subscriber.html in ezmq-0.4.1 vs doc/EZMQ/Subscriber.html in ezmq-0.4.2

- old
+ new

@@ -133,11 +133,11 @@ <ul class="summary"> <li class="public "> <span class="summary_signature"> - <a href="#initialize-instance_method" title="#initialize (instance method)">- (Publisher) <strong>initialize</strong>(**options) </a> + <a href="#initialize-instance_method" title="#initialize (instance method)">- (Publisher) <strong>initialize</strong>(mode = :connect, **options) </a> </span> @@ -272,11 +272,11 @@ <h2>Constructor Details</h2> <div class="method_details first"> <h3 class="signature first" id="initialize-instance_method"> - - (<tt><span class='object_link'><a href="Publisher.html" title="EZMQ::Publisher (class)">Publisher</a></span></tt>) <strong>initialize</strong>(**options) + - (<tt><span class='object_link'><a href="Publisher.html" title="EZMQ::Publisher (class)">Publisher</a></span></tt>) <strong>initialize</strong>(mode = :connect, **options) @@ -300,10 +300,28 @@ <p class="tag_title">Parameters:</p> <ul class="param"> <li> + <span class='name'>mode</span> + + + <span class='type'>(<tt>:bind</tt>, <tt>:connect</tt>)</span> + + + <em class="default">(defaults to: <tt>:connect</tt>)</em> + + + &mdash; + <div class='inline'> +<p>(:connect) a mode for the socket.</p> +</div> + + </li> + + <li> + <span class='name'>options</span> <span class='type'>(<tt>Hash</tt>)</span> @@ -319,10 +337,12 @@ </ul> + + <p class="tag_title">Options Hash (<tt>**options</tt>):</p> <ul class="option"> <li> <span class="name">topic</span> @@ -352,20 +372,20 @@ <tr> <td> <pre class="lines"> -17 18 19 -20</pre> +20 +21</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 17</span> + <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 18</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='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_mode'>mode</span> <span class='op'>=</span> <span class='symbol'>:connect</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> + <span class='kw'>super</span> <span class='id identifier rubyid_mode'>mode</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> </td> </tr> </table> @@ -456,18 +476,18 @@ <tr> <td> <pre class="lines"> -57 58 59 60 -61</pre> +61 +62</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 57</span> + <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 58</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='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> @@ -623,11 +643,10 @@ <tr> <td> <pre class="lines"> -35 36 37 38 39 40 @@ -635,14 +654,15 @@ 42 43 44 45 46 -47</pre> +47 +48</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 35</span> + <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 36</span> <span class='kw'>def</span> <span class='id identifier rubyid_receive'>receive</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span> <span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_recv_string'>recv_string</span> <span class='id identifier rubyid_message'>message</span> @@ -735,16 +755,16 @@ <tr> <td> <pre class="lines"> -74 75 -76</pre> +76 +77</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 74</span> + <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 75</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> @@ -815,16 +835,16 @@ <tr> <td> <pre class="lines"> -85 86 -87</pre> +87 +88</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 85</span> + <pre class="code"><span class="info file"># File 'lib/ezmq/subscribe.rb', line 86</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> @@ -835,10 +855,10 @@ </div> </div> <div id="footer"> - Generated on Fri Feb 20 17:02:39 2015 by + Generated on Tue Feb 24 13:47:50 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