Permalink
Browse files

ruby: updates rpc/rdoc

  • Loading branch information...
1 parent ecce877 commit ef908e5fa16645de1531cc44ede091e201e150b4 @frsyuki frsyuki committed Apr 6, 2011
Showing with 580 additions and 453 deletions.
  1. +16 −16 rpc/rdoc/0.4/MessagePack.html
  2. +4 −4 rpc/rdoc/0.4/MessagePack/RPC/CallError.html
  3. +26 −16 rpc/rdoc/0.4/MessagePack/RPC/Client.html
  4. +4 −4 rpc/rdoc/0.4/MessagePack/RPC/Client/Base.html
  5. +27 −25 rpc/rdoc/0.4/MessagePack/RPC/RPCError.html
  6. +16 −4 rpc/rdoc/0.4/MessagePack/RPC/RemoteError.html
  7. +16 −4 rpc/rdoc/0.4/MessagePack/RPC/RuntimeError.html
  8. +4 −4 rpc/rdoc/0.4/MessagePack/RPC/ServerError.html
  9. +90 −51 rpc/rdoc/0.4/MessagePack/RPC/Session.html
  10. +65 −66 rpc/rdoc/0.4/MessagePack/RPC/TCPClientTransport.html
  11. +47 −47 rpc/rdoc/0.4/MessagePack/RPC/TCPClientTransport/ClientSocket.html
  12. +23 −23 rpc/rdoc/0.4/MessagePack/RPC/TCPServerTransport.html
  13. +21 −21 rpc/rdoc/0.4/MessagePack/RPC/TCPServerTransport/ServerSocket.html
  14. +4 −5 rpc/rdoc/0.4/MessagePack/RPC/TCPTransport/BasicSocket.html
  15. +4 −4 rpc/rdoc/0.4/MessagePack/RPC/TimeoutError.html
  16. +4 −4 rpc/rdoc/0.4/MessagePack/RPC/TransportError.html
  17. +27 −27 rpc/rdoc/0.4/MessagePack/RPC/UNIXClientTransport.html
  18. +21 −21 rpc/rdoc/0.4/MessagePack/RPC/UNIXClientTransport/ClientSocket.html
  19. +22 −22 rpc/rdoc/0.4/MessagePack/RPC/UNIXServerTransport.html
  20. +21 −21 rpc/rdoc/0.4/MessagePack/RPC/UNIXServerTransport/ServerSocket.html
  21. +4 −5 rpc/rdoc/0.4/MessagePack/RPC/UNIXTransport/BasicSocket.html
  22. +19 −18 rpc/rdoc/0.4/created.rid
  23. +10 −8 rpc/rdoc/0.4/index.html
  24. +52 −0 rpc/rdoc/0.4/lib/msgpack-rpc_rb.html
  25. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/address_rb.html
  26. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/client_rb.html
  27. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/dispatcher_rb.html
  28. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/exception_rb.html
  29. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/future_rb.html
  30. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/loop_rb.html
  31. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/message_rb.html
  32. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/multi_future_rb.html
  33. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/server_rb.html
  34. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/session_pool_rb.html
  35. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/session_rb.html
  36. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/transport/base_rb.html
  37. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/transport/tcp_rb.html
  38. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/transport/udp_rb.html
  39. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc/transport/unix_rb.html
  40. +1 −1 rpc/rdoc/0.4/lib/msgpack/rpc/version_rb.html
  41. +2 −2 rpc/rdoc/0.4/lib/msgpack/rpc_rb.html
@@ -265,7 +265,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -284,7 +284,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -303,7 +303,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -322,7 +322,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -341,7 +341,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -360,7 +360,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -379,7 +379,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -398,7 +398,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -417,7 +417,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -436,7 +436,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -455,7 +455,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -474,7 +474,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -493,7 +493,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby TCP transport
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -512,7 +512,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby UDP transport
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -531,7 +531,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby UNIX transport
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -550,7 +550,7 @@ <h1 class="module">MessagePack</h1>
MessagePack-<a href="MessagePack/RPC.html">RPC</a> for Ruby
</p>
<p>
-Copyright (C) 2010 FURUHASHI Sadayuki
+Copyright (C) 2010-2011 FURUHASHI Sadayuki
</p>
<pre>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
@@ -267,10 +267,10 @@ <h3 class="section-header">Public Class Methods</h3>
<div class="method-source-code"
id="new-source">
<pre>
- <span class="ruby-comment cmt"># File lib/msgpack/rpc/exception.rb, line 100</span>
-100: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">msg</span>)
-101: <span class="ruby-keyword kw">super</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span><span class="ruby-operator">::</span><span class="ruby-constant">CODE</span>, <span class="ruby-identifier">msg</span>)
-102: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/msgpack/rpc/exception.rb, line 102</span>
+102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">msg</span>)
+103: <span class="ruby-keyword kw">super</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span><span class="ruby-operator">::</span><span class="ruby-constant">CODE</span>, <span class="ruby-identifier">msg</span>)
+104: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -338,24 +338,34 @@ <h3 class="section-header">Public Class Methods</h3>
<div class="method-description">
- <p>
-Creates a client, call the block and close the client.
+ <ol>
+<li><p>
+open(builder, address, loop = Loop.new) {|client }
+</p>
+</li>
+<li><p>
+open(host, port, loop = Loop.new) {|client }
+</p>
+</li>
+</ol>
+<p>
+Creates a client, calls the block and closes the client.
</p>
<div class="method-source-code"
id="open-source">
<pre>
- <span class="ruby-comment cmt"># File lib/msgpack/rpc/client.rb, line 52</span>
-52: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">open</span>(*<span class="ruby-identifier">args</span>, &amp;<span class="ruby-identifier">block</span>)
-53: <span class="ruby-identifier">c</span> = <span class="ruby-identifier">new</span>(*<span class="ruby-identifier">args</span>)
-54: <span class="ruby-keyword kw">begin</span>
-55: <span class="ruby-identifier">block</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">c</span>)
-56: <span class="ruby-keyword kw">ensure</span>
-57: <span class="ruby-identifier">c</span>.<span class="ruby-identifier">close</span>
-58: <span class="ruby-keyword kw">end</span>
-59: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/msgpack/rpc/client.rb, line 54</span>
+54: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">open</span>(*<span class="ruby-identifier">args</span>, &amp;<span class="ruby-identifier">block</span>)
+55: <span class="ruby-identifier">c</span> = <span class="ruby-identifier">new</span>(*<span class="ruby-identifier">args</span>)
+56: <span class="ruby-keyword kw">begin</span>
+57: <span class="ruby-identifier">block</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">c</span>)
+58: <span class="ruby-keyword kw">ensure</span>
+59: <span class="ruby-identifier">c</span>.<span class="ruby-identifier">close</span>
+60: <span class="ruby-keyword kw">end</span>
+61: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -392,11 +402,11 @@ <h3 class="section-header">Public Instance Methods</h3>
<div class="method-source-code"
id="close-source">
<pre>
- <span class="ruby-comment cmt"># File lib/msgpack/rpc/client.rb, line 61</span>
-61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
-62: <span class="ruby-ivar">@timer</span>.<span class="ruby-identifier">detach</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@timer</span>.<span class="ruby-identifier">attached?</span>
-63: <span class="ruby-keyword kw">super</span>
-64: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/msgpack/rpc/client.rb, line 63</span>
+63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
+64: <span class="ruby-ivar">@timer</span>.<span class="ruby-identifier">detach</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@timer</span>.<span class="ruby-identifier">attached?</span>
+65: <span class="ruby-keyword kw">super</span>
+66: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -279,10 +279,10 @@ <h3 class="section-header">Public Class Methods</h3>
<div class="method-source-code"
id="new-source">
<pre>
- <span class="ruby-comment cmt"># File lib/msgpack/rpc/client.rb, line 72</span>
-72: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(*<span class="ruby-identifier">args</span>)
-73: <span class="ruby-ivar">@base</span> = <span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(*<span class="ruby-identifier">args</span>)
-74: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/msgpack/rpc/client.rb, line 74</span>
+74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(*<span class="ruby-identifier">args</span>)
+75: <span class="ruby-ivar">@base</span> = <span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(*<span class="ruby-identifier">args</span>)
+76: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -332,26 +332,26 @@ <h3 class="section-header">Public Class Methods</h3>
<div class="method-source-code"
id="create-source">
<pre>
- <span class="ruby-comment cmt"># File lib/msgpack/rpc/exception.rb, line 171</span>
-171: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">code</span>, <span class="ruby-identifier">data</span>)
-172: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">code</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value">..</span>
-173: <span class="ruby-identifier">code</span> = <span class="ruby-identifier">code</span>.<span class="ruby-identifier">dup</span>
-174: <span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">true</span>
-175: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">klass</span> = <span class="ruby-constant">SYSTEM_ERROR_TABLE</span>[<span class="ruby-identifier">code</span>]
-176: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>(*<span class="ruby-identifier">data</span>)
-177: <span class="ruby-keyword kw">end</span>
-178: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-regexp re">/\.[^\.]*$/</span>) <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">empty?</span>
-179: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">RPCError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">code</span>, *<span class="ruby-identifier">data</span>)
-180: <span class="ruby-keyword kw">end</span>
-181: <span class="ruby-keyword kw">end</span>
-182:
-183: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">code</span> <span class="ruby-operator">==</span> <span class="ruby-constant">RuntimeError</span><span class="ruby-operator">::</span><span class="ruby-constant">CODE</span>
-184: <span class="ruby-constant">RuntimeError</span>.<span class="ruby-identifier">new</span>(*<span class="ruby-identifier">data</span>)
-185:
-186: <span class="ruby-keyword kw">else</span>
-187: <span class="ruby-constant">RemoteError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">code</span>, *<span class="ruby-identifier">data</span>)
-188: <span class="ruby-keyword kw">end</span>
-189: <span class="ruby-keyword kw">end</span></pre>
+ <span class="ruby-comment cmt"># File lib/msgpack/rpc/exception.rb, line 175</span>
+175: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">code</span>, <span class="ruby-identifier">data</span>)
+176: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">code</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value">..</span>
+177: <span class="ruby-identifier">code</span> = <span class="ruby-identifier">code</span>.<span class="ruby-identifier">dup</span>
+178: <span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">true</span>
+179: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">klass</span> = <span class="ruby-constant">SYSTEM_ERROR_TABLE</span>[<span class="ruby-identifier">code</span>]
+180: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>(*<span class="ruby-identifier">data</span>)
+181: <span class="ruby-keyword kw">end</span>
+182: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-regexp re">/\.[^\.]*$/</span>) <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">empty?</span>
+183: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">RPCError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">code</span>, *<span class="ruby-identifier">data</span>)
+184: <span class="ruby-keyword kw">end</span>
+185: <span class="ruby-keyword kw">end</span>
+186:
+187: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">code</span> <span class="ruby-operator">==</span> <span class="ruby-constant">RuntimeError</span><span class="ruby-operator">::</span><span class="ruby-constant">CODE</span>
+188: <span class="ruby-constant">RuntimeError</span>.<span class="ruby-identifier">new</span>(*<span class="ruby-identifier">data</span>)
+189:
+190: <span class="ruby-keyword kw">else</span>
+191: <span class="ruby-constant">RemoteError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">code</span>, *<span class="ruby-identifier">data</span>)
+192: <span class="ruby-keyword kw">end</span>
+193: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
@@ -427,11 +427,13 @@ <h3 class="section-header">Public Instance Methods</h3>
<span class="ruby-comment cmt"># File lib/msgpack/rpc/exception.rb, line 71</span>
71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is?</span>(<span class="ruby-identifier">code</span>)
72: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Class</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">code</span> <span class="ruby-operator">&lt;</span> <span class="ruby-constant">RPCError</span>
-73: <span class="ruby-identifier">code</span> = <span class="ruby-identifier">code</span><span class="ruby-operator">::</span><span class="ruby-constant">CODE</span>
-74: <span class="ruby-keyword kw">end</span>
-75: <span class="ruby-ivar">@code</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">code</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@code</span>[<span class="ruby-value">0</span>,<span class="ruby-identifier">code</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-node">&quot;#{code}.&quot;</span> <span class="ruby-operator">||</span>
-76: (<span class="ruby-identifier">code</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;.RemoteError&quot;</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@code</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">..</span>)
-77: <span class="ruby-keyword kw">end</span></pre>
+73: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">code</span> <span class="ruby-operator">==</span> <span class="ruby-constant">RemoteError</span>
+74: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@code</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">..</span>
+75: <span class="ruby-keyword kw">end</span>
+76: <span class="ruby-identifier">code</span> = <span class="ruby-identifier">code</span><span class="ruby-operator">::</span><span class="ruby-constant">CODE</span>
+77: <span class="ruby-keyword kw">end</span>
+78: <span class="ruby-ivar">@code</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">code</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@code</span>[<span class="ruby-value">0</span>,<span class="ruby-identifier">code</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-node">&quot;#{code}.&quot;</span>
+79: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
Oops, something went wrong.

0 comments on commit ef908e5

Please sign in to comment.