doc/EZMQ/Publisher.html in ezmq-0.4.1 vs doc/EZMQ/Publisher.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 = :bind, **options) </a> </span> @@ -200,11 +200,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="" title="EZMQ::Publisher (class)">Publisher</a></span></tt>) <strong>initialize</strong>(**options) + - (<tt><span class='object_link'><a href="" title="EZMQ::Publisher (class)">Publisher</a></span></tt>) <strong>initialize</strong>(mode = :bind, **options) @@ -220,10 +220,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>:bind</tt>)</em> + + + &mdash; + <div class='inline'> +<p>(:bind) a mode for the socket.</p> +</div> + + </li> + + <li> + <span class='name'>options</span> <span class='type'>(<tt>Hash</tt>)</span> @@ -250,19 +268,19 @@ <tr> <td> <pre class="lines"> -14 15 -16</pre> +16 +17</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq/publish.rb', line 14</span> + <pre class="code"><span class="info file"># File 'lib/ezmq/publish.rb', line 15</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'>:bind</span><span class='comma'>,</span> <span class='const'>ZMQ</span><span class='op'>::</span><span class='const'>PUB</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'>:bind</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'>PUB</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -396,17 +414,17 @@ <tr> <td> <pre class="lines"> -27 28 29 -30</pre> +30 +31</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq/publish.rb', line 27</span> + <pre class="code"><span class="info file"># File 'lib/ezmq/publish.rb', line 28</span> <span class='kw'>def</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</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='comma'>,</span> <span class='label'>topic:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</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'>&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='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:encode</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='ivar'>@encode</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span> <span class='id identifier rubyid_message'>message</span> <span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_send_string'>send_string</span> <span class='id identifier rubyid_message'>message</span> <span class='kw'>end</span></pre> @@ -418,10 +436,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