Sha256: 6956dba3beb53966e282d5e3dddf798e57ebff66e7d90290cea71ab09d2612b8

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 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>close (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 62</span>
62:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
63:       <span class="ruby-identifier">detach</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attached?</span>
64:       <span class="ruby-ivar">@writer</span>.<span class="ruby-identifier">detach</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@writer</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@writer</span>.<span class="ruby-identifier">attached?</span>
65:       <span class="ruby-ivar">@io</span>.<span class="ruby-identifier">close</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@io</span>.<span class="ruby-identifier">closed?</span>
66: 
67:       <span class="ruby-identifier">on_close</span>
68:       <span class="ruby-keyword kw">nil</span>
69:     <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/M000101.html