private Method

Read._pre_eof_close() { || ... }

There's no documentation for this item.

Source Code

# File rio/ops/stream/read.rb, line 50
def _pre_eof_close(&block)
  begin
    closit = ior.eof? && closeoneof?
    rtn = yield
  ensure
    self.close if closit
  end
  rtn
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.