Sha256: b276ea0842994e5ac1c193c7b0d2f89e4954e447ea0785eac6cd536c11f74acc

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 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>new (Rev::BufferedIO)</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/rev/buffered_io.rb, line 22</span>
22:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">io</span>)
23:       <span class="ruby-comment cmt"># Output buffer</span>
24:       <span class="ruby-ivar">@write_buffer</span> = <span class="ruby-constant">Rev</span><span class="ruby-operator">::</span><span class="ruby-constant">Buffer</span>.<span class="ruby-identifier">new</span>
25: 
26:       <span class="ruby-comment cmt"># Coerce the argument into an IO object if possible</span>
27:       <span class="ruby-ivar">@io</span> = <span class="ruby-constant">IO</span>.<span class="ruby-identifier">try_convert</span>(<span class="ruby-identifier">io</span>)
28:       <span class="ruby-keyword kw">super</span>(<span class="ruby-ivar">@io</span>)
29:     <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rev-0.1.2 doc/rdoc/classes/Rev/BufferedIO.src/M000095.html