Class: Ahnnotate::VfsDriver::ReadOnlyFilesystem
- Inherits:
-
Filesystem
- Object
- Filesystem
- Ahnnotate::VfsDriver::ReadOnlyFilesystem
- Defined in:
- lib/ahnnotate/vfs_driver/read_only_filesystem.rb
Instance Attribute Summary collapse
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
Instance Method Summary collapse
- #[]=(path, content) ⇒ Object
-
#initialize(root:) ⇒ ReadOnlyFilesystem
constructor
A new instance of ReadOnlyFilesystem.
Methods inherited from Filesystem
Constructor Details
#initialize(root:) ⇒ ReadOnlyFilesystem
Returns a new instance of ReadOnlyFilesystem.
6 7 8 9 |
# File 'lib/ahnnotate/vfs_driver/read_only_filesystem.rb', line 6 def initialize(root:) super @changes = {} end |
Instance Attribute Details
#changes ⇒ Object (readonly)
Returns the value of attribute changes.
4 5 6 |
# File 'lib/ahnnotate/vfs_driver/read_only_filesystem.rb', line 4 def changes @changes end |
Instance Method Details
#[]=(path, content) ⇒ Object
11 12 13 14 |
# File 'lib/ahnnotate/vfs_driver/read_only_filesystem.rb', line 11 def []=(path, content) @changes[path] = content nil end |