doc/EZMQ/Publisher.html in ezmq-0.1.2 vs doc/EZMQ/Publisher.html in ezmq-0.2.0

- old
+ new

@@ -159,11 +159,11 @@ <li class="public "> <span class="summary_signature"> - <a href="#send-instance_method" title="#send (instance method)">- (Fixnum) <strong>send</strong>(message = &#39;&#39;, topic: &#39;&#39;, encode: @encode) </a> + <a href="#send-instance_method" title="#send (instance method)">- (Fixnum) <strong>send</strong>(message = &#39;&#39;, topic: &#39;&#39;, **options) </a> </span> @@ -229,37 +229,37 @@ &mdash; <div class='inline'> -<p>optional parameters</p> +<p>optional parameters.</p> </div> </li> </ul> <p class="tag_title">See Also:</p> <ul class="see"> - <li><span class='object_link'><a href="Socket.html" title="EZMQ::Socket (class)">EZMQ::Socket for a list of optional parameters.</a></span></li> + <li><span class='object_link'><a href="Socket.html" title="EZMQ::Socket (class)">EZMQ::Socket for optional parameters.</a></span></li> </ul> </div><table class="source_code"> <tr> <td> <pre class="lines"> -153 -154 -155</pre> +186 +187 +188</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 153</span> + <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 186</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'>end</span></pre> </td> @@ -275,11 +275,11 @@ <div class="method_details first"> <h3 class="signature first" id="send-instance_method"> - - (<tt>Fixnum</tt>) <strong>send</strong>(message = &#39;&#39;, topic: &#39;&#39;, encode: @encode) + - (<tt>Fixnum</tt>) <strong>send</strong>(message = &#39;&#39;, topic: &#39;&#39;, **options) @@ -329,26 +329,52 @@ </li> <li> - <span class='name'>encode</span> + <span class='name'>options</span> - <span class='type'>(<tt>lambda</tt>)</span> + <span class='type'>(<tt>Hash</tt>)</span> &mdash; <div class='inline'> -<p>how to encode the message.</p> +<p>optional parameters.</p> </div> </li> </ul> + + + + + + + + <p class="tag_title">Options Hash (<tt>**options</tt>):</p> + <ul class="option"> + + <li> + <span class="name">encode</span> + <span class="type">(<tt>lambda</tt>)</span> + <span class="default"> + + </span> + + &mdash; <div class='inline'> +<p>how to encode the message.</p> +</div> + + </li> + + </ul> + + <p class="tag_title">Returns:</p> <ul class="return"> <li> @@ -370,19 +396,19 @@ <tr> <td> <pre class="lines"> -165 -166 -167</pre> +199 +200 +201</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 165</span> + <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 199</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='label'>encode:</span> <span class='ivar'>@encode</span><span class='rparen'>)</span> - <span class='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_send_string'>send_string</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_encode'>encode</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='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='ivar'>@socket</span><span class='period'>.</span><span class='id identifier rubyid_send_string'>send_string</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='kw'>end</span></pre> </td> </tr> </table> </div> @@ -390,10 +416,10 @@ </div> </div> <div id="footer"> - Generated on Tue Jan 6 12:58:18 2015 by + Generated on Fri Jan 9 13:06:26 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