Module: File

Defined in:
lib/mockfs/override.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.dirname(*args) ⇒ Object



42
# File 'lib/mockfs/override.rb', line 42

def self.dirname( *args ); $dirname_method.call( *args ); end

.join(*args) ⇒ Object



44
45
46
# File 'lib/mockfs/override.rb', line 44

def self.join( *args )
	$join_method.call *args
end

.method_missing(symbol, *args, &action) ⇒ Object



48
49
50
51
# File 'lib/mockfs/override.rb', line 48

def self.method_missing( symbol, *args, &action )
	file = MockFS.mock? ? MockFS.file : MockFS::OriginalFile
	file.send( symbol, *args, &action )
end