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

- old
+ new

@@ -159,11 +159,11 @@ <li class="public "> <span class="summary_signature"> - <a href="#request-instance_method" title="#request (instance method)">- (void) <strong>request</strong>(message = &#39;&#39;, encode: @encode, decode: @decode) </a> + <a href="#request-instance_method" title="#request (instance method)">- (void) <strong>request</strong>(message = &#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"> -125 -126 -127</pre> +119 +120 +121</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 125</span> + <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 119</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'>REQ</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="request-instance_method"> - - (<tt>void</tt>) <strong>request</strong>(message = &#39;&#39;, encode: @encode, decode: @decode) + - (<tt>void</tt>) <strong>request</strong>(message = &#39;&#39;, **options) @@ -313,60 +313,89 @@ </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> - <li> +</ul> + + + + + + + <p class="tag_title">Options Hash (<tt>**options</tt>):</p> + <ul class="option"> - <span class='name'>decode</span> + <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> - - <span class='type'>(<tt>lambda</tt>)</span> - - - - &mdash; - <div class='inline'> + <li> + <span class="name">decode</span> + <span class="type">(<tt>lambda</tt>)</span> + <span class="default"> + + </span> + + &mdash; <div class='inline'> <p>how to decode the message.</p> </div> + + </li> - </li> + </ul> -</ul> </div><table class="source_code"> <tr> <td> <pre class="lines"> +132 +133 +134 +135 +136 137 138 -139 -140</pre> +139</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 137</span> + <pre class="code"><span class="info file"># File 'lib/ezmq.rb', line 132</span> -<span class='kw'>def</span> <span class='id identifier rubyid_request'>request</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'>encode:</span> <span class='ivar'>@encode</span><span class='comma'>,</span> <span class='label'>decode:</span> <span class='ivar'>@decode</span><span class='rparen'>)</span> - <span class='id identifier rubyid_send'>send</span> <span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='label'>encode:</span> <span class='id identifier rubyid_encode'>encode</span> - <span class='id identifier rubyid_receive'>receive</span> <span class='label'>decode:</span> <span class='id identifier rubyid_decode'>decode</span> +<span class='kw'>def</span> <span class='id identifier rubyid_request'>request</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='op'>**</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> + <span class='id identifier rubyid_send'>send</span> <span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</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='id identifier rubyid_options'>options</span> + <span class='kw'>else</span> + <span class='id identifier rubyid_receive'>receive</span> <span class='id identifier rubyid_options'>options</span> + <span class='kw'>end</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -374,10 +403,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