Class: Fried::Test::Directory::CurrentWorkingDirectory::Substitute

Inherits:
Object
  • Object
show all
Defined in:
lib/fried/test/directory/current_working_directory.rb

Instance Method Summary collapse

Constructor Details

#initialize(path = "/dev/null") ⇒ Substitute

Returns a new instance of Substitute.



14
15
16
# File 'lib/fried/test/directory/current_working_directory.rb', line 14

def initialize(path = "/dev/null")
  @path = path
end

Instance Method Details

#callObject



18
19
20
# File 'lib/fried/test/directory/current_working_directory.rb', line 18

def call
  Pathname.new(path)
end