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
    # File lib/rubygems/package.rb, line 22
22:   def initialize(logger = nil)
23:     @logger = logger
24:   end

Public Instance Methods

method_missing(meth, *args, &block) click to toggle source
    # File lib/rubygems/package.rb, line 26
26:   def method_missing(meth, *args, &block)
27:     case
28:     when FileUtils.respond_to?(meth)
29:       @logger.log "#{meth}: #{args}" if @logger
30:       FileUtils.send meth, *args, &block
31:     when Gem::FileOperations.respond_to?(meth)
32:       @logger.log "#{meth}: #{args}" if @logger
33:       Gem::FileOperations.send meth, *args, &block
34:     else
35:       super
36:     end
37:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.