Flowdock
method

postpone

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - 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.

postpone() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/mkmf.rb, line 201
  def self::postpone
    tmplog = "mkmftmp#{@postpone += 1}.log"
    open do
      log, *save = @log, @logfile, @orgout, @orgerr
      @log, @logfile, @orgout, @orgerr = nil, tmplog, log, log
      begin
        log.print(open {yield})
        @log.close
        File::open(tmplog) {|t| FileUtils.copy_stream(t, log)}
      ensure
        @log, @logfile, @orgout, @orgerr = log, *save
        @postpone -= 1
        rm_f tmplog
      end
    end
  end
Register or log in to add new notes.