class ChefFS::FileSystem::CookbookSubdir
Attributes
children[R]
versions[R]
Public Class Methods
new(name, parent, ruby_only, recursive)
click to toggle source
Calls superclass method
ChefFS::FileSystem::BaseFSDir::new
# File lib/chef_fs/file_system/cookbook_subdir.rb, line 24 def initialize(name, parent, ruby_only, recursive) super(name, parent) @children = [] @ruby_only = ruby_only @recursive = recursive end
Public Instance Methods
add_child(child)
click to toggle source
# File lib/chef_fs/file_system/cookbook_subdir.rb, line 34 def add_child(child) @children << child end
can_have_child?(name, is_dir)
click to toggle source
# File lib/chef_fs/file_system/cookbook_subdir.rb, line 38 def can_have_child?(name, is_dir) if is_dir return false if !@recursive else return false if @ruby_only && name !~ /\.rb$/ end true end
rest()
click to toggle source
# File lib/chef_fs/file_system/cookbook_subdir.rb, line 47 def rest parent.rest end