Class: FSSM::Tree::Cache

Inherits:
Object
  • Object
show all
Includes:
CacheDebug, NodeBase, NodeEnumerable, NodeInsertion
Defined in:
lib/fssm/tree.rb

Instance Method Summary collapse

Methods included from CacheDebug

#unset

Methods included from NodeInsertion

#unset

Methods included from NodeBase

#initialize

Methods included from NodeEnumerable

#each

Instance Method Details

#directoriesObject



156
157
158
# File 'lib/fssm/tree.rb', line 156

def directories
  ftype('directory')
end

#filesObject



152
153
154
# File 'lib/fssm/tree.rb', line 152

def files
  ftype('file')
end


160
161
162
# File 'lib/fssm/tree.rb', line 160

def links
  ftype('link')
end

#set(path) ⇒ Object



145
146
147
148
149
150
# File 'lib/fssm/tree.rb', line 145

def set(path)
  # all paths set from this level need to be absolute
  # realpath will fail on broken links
  path = FSSM::Pathname.for(path).expand_path
  super(path)
end