Class: EacGit::Rspec::StubbedGitLocalRepo::File
- Inherits:
-
FsObject
- Object
- FsObject
- EacGit::Rspec::StubbedGitLocalRepo::File
show all
- Defined in:
- lib/eac_git/rspec/stubbed_git_local_repo/file.rb
Instance Attribute Summary
Attributes inherited from FsObject
#git, #subpath
Instance Method Summary
collapse
Methods inherited from FsObject
#initialize, #path
Instance Method Details
#delete ⇒ Object
14
15
16
|
# File 'lib/eac_git/rspec/stubbed_git_local_repo/file.rb', line 14
def delete
path.unlink
end
|
#touch ⇒ Object
10
11
12
|
# File 'lib/eac_git/rspec/stubbed_git_local_repo/file.rb', line 10
def touch
::FileUtils.touch(path.to_path)
end
|