Class: Path::Backend::Mock::File
- Defined in:
- lib/rubypath/backend/mock.rb
Internal Virtual File System collapse
-
#content ⇒ Object
Returns the value of attribute content.
Attributes inherited from Node
#atime, #mode, #mtime, #name, #parent, #sys
Internal Virtual File System collapse
-
#initialize(backend, name, opts = {}) ⇒ File
constructor
A new instance of File.
- #lookup(path) ⇒ Object
Methods inherited from Node
Constructor Details
#initialize(backend, name, opts = {}) ⇒ File
Returns a new instance of File.
346 347 348 349 |
# File 'lib/rubypath/backend/mock.rb', line 346 def initialize(backend, name, opts = {}) super self.mode = 0666 - backend.get_umask end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
344 345 346 |
# File 'lib/rubypath/backend/mock.rb', line 344 def content @content end |
Instance Method Details
#lookup(path) ⇒ Object
351 352 353 |
# File 'lib/rubypath/backend/mock.rb', line 351 def lookup(path) nil end |