Class: Chef::ChefFS::FileSystem::MemoryRoot
- Inherits:
-
MemoryDir
- Object
- BaseFSObject
- BaseFSDir
- MemoryDir
- Chef::ChefFS::FileSystem::MemoryRoot
- Defined in:
- lib/chef/chef_fs/file_system/memory_root.rb
Instance Attribute Summary collapse
-
#cannot_be_in_regex ⇒ Object
readonly
Returns the value of attribute cannot_be_in_regex.
Attributes inherited from MemoryDir
Attributes inherited from BaseFSObject
Instance Method Summary collapse
-
#initialize(pretty_name, cannot_be_in_regex = nil) ⇒ MemoryRoot
constructor
A new instance of MemoryRoot.
- #path_for_printing ⇒ Object
Methods inherited from MemoryDir
#add_child, #add_dir, #add_file, #can_have_child?, #child
Methods inherited from BaseFSDir
#can_have_child?, #child, #dir?
Methods inherited from BaseFSObject
#can_have_child?, #chef_object, #child, #children, #compare_to, #create_child, #delete, #dir?, #exists?, #read, #root, #write
Constructor Details
#initialize(pretty_name, cannot_be_in_regex = nil) ⇒ MemoryRoot
Returns a new instance of MemoryRoot.
7 8 9 10 11 |
# File 'lib/chef/chef_fs/file_system/memory_root.rb', line 7 def initialize(pretty_name, cannot_be_in_regex = nil) super('', nil) @pretty_name = pretty_name @cannot_be_in_regex = cannot_be_in_regex end |
Instance Attribute Details
#cannot_be_in_regex ⇒ Object (readonly)
Returns the value of attribute cannot_be_in_regex.
13 14 15 |
# File 'lib/chef/chef_fs/file_system/memory_root.rb', line 13 def cannot_be_in_regex @cannot_be_in_regex end |
Instance Method Details
#path_for_printing ⇒ Object
15 16 17 |
# File 'lib/chef/chef_fs/file_system/memory_root.rb', line 15 def path_for_printing @pretty_name end |