Class: TestFs::File
Overview
File
Represents a single file node.
Instance Method Summary collapse
-
#create! ⇒ Object
Create the current file.
Methods inherited from Node
Constructor Details
This class inherits a constructor from TestFs::Node
Instance Method Details
#create! ⇒ Object
Create the current file
11 12 13 |
# File 'lib/test_fs/file.rb', line 11 def create! FileUtils.touch(self.path) end |