Sha256: af82f729c3053c32383b2921f178af3346f78b21f0da8f263c6e1dcc128d06b0
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>protect (RFuzz::PushBackIO)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre> <span class="ruby-comment cmt"># File lib/rfuzz/pushbackio.rb, line 96</span> 96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">protect</span> 97: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@secondary</span>.<span class="ruby-identifier">closed?</span> 98: <span class="ruby-keyword kw">yield</span> 99: <span class="ruby-keyword kw">else</span> 100: <span class="ruby-identifier">raise</span> <span class="ruby-constant">HttpClientError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"Socket closed."</span>) 101: <span class="ruby-keyword kw">end</span> 102: <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rfuzz-0.9 | doc/rdoc/classes/RFuzz/PushBackIO.src/M000019.html |