Parent

Class Index [+]

Quicksearch

Gem::FileOperations

Wrapper for FileUtils meant to provide logging and additional operations if needed.

Public Class Methods

new(logger = nil) click to toggle source

(Not documented)

# File lib/rubygems/package.rb, line 20
  def initialize(logger = nil)
    @logger = logger
  end

Public Instance Methods

method_missing(meth, *args, &block) click to toggle source

(Not documented)

# File lib/rubygems/package.rb, line 24
  def method_missing(meth, *args, &block)
    case
    when FileUtils.respond_to?(meth)
      @logger.log "#{meth}: #{args}" if @logger
      FileUtils.send meth, *args, &block
    when Gem::FileOperations.respond_to?(meth)
      @logger.log "#{meth}: #{args}" if @logger
      Gem::FileOperations.send meth, *args, &block
    else
      super
    end
  end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.