APIdock / Ruby
/
method

open

ruby latest stable - Class: Logging

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_6_287) is shown here.

open()
public

No documentation available.

# File lib/mkmf.rb, line 175
 def self::open
 @log ||= File::open(@logfile, 'w')
 @log.sync = true
 $stderr.reopen(@log)
 $stdout.reopen(@log)
 yield
 ensure
 $stderr.reopen(@orgerr)
 $stdout.reopen(@orgout)
 end

AltStyle によって変換されたページ (->オリジナル) /