class FileTree
Constants
- VERSION
Attributes
id[RW]
identifier[RW]
name[RW]
Public Instance Methods
children(*args)
click to toggle source
See {rubydoc.info/stdlib/pathname/Pathname:children Pathname.children}
@return [Array] an Array of all entries contained in self.
# File lib/filetree.rb, line 42 def children(*args) if self.directory? _children(*args) else [] end end
join(*args)
click to toggle source
Joins the given pathnames onto self to create a new FileTree
object.
Calls superclass method
# File lib/filetree.rb, line 52 def join(*args) FileTree.new(super(*args)) end
parent()
click to toggle source
See {rubydoc.info/stdlib/pathname/Pathname:parent Pathname.parent}
@return [FileTree] The directory immediately above self.
# File lib/filetree.rb, line 33 def parent FileTree.new(_parent) end