Class: Fried::Test::Directory::CurrentWorkingDirectory::Substitute
- Inherits:
-
Object
- Object
- Fried::Test::Directory::CurrentWorkingDirectory::Substitute
- Defined in:
- lib/fried/test/directory/current_working_directory.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(path = "/dev/null") ⇒ Substitute
constructor
A new instance of Substitute.
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
#call ⇒ Object
18 19 20 |
# File 'lib/fried/test/directory/current_working_directory.rb', line 18 def call Pathname.new(path) end |