Class: ChefFS::FileSystem::MemoryFile
- Inherits:
-
BaseFSObject
- Object
- BaseFSObject
- ChefFS::FileSystem::MemoryFile
- Defined in:
- lib/chef_fs/file_system/memory_file.rb
Instance Attribute Summary
Attributes inherited from BaseFSObject
Instance Method Summary collapse
-
#initialize(name, parent, value) ⇒ MemoryFile
constructor
A new instance of MemoryFile.
- #read ⇒ Object
Methods inherited from BaseFSObject
#can_have_child?, #chef_object, #child, #children, #compare_to, #create_child, #delete, #dir?, #exists?, #path_for_printing, #root, #write
Constructor Details
#initialize(name, parent, value) ⇒ MemoryFile
Returns a new instance of MemoryFile.
6 7 8 9 |
# File 'lib/chef_fs/file_system/memory_file.rb', line 6 def initialize(name, parent, value) super(name, parent) @value = value end |
Instance Method Details
#read ⇒ Object
10 11 12 |
# File 'lib/chef_fs/file_system/memory_file.rb', line 10 def read return @value end |