module Police::VmInfo::Paths
Implementation details. @private
Public Class Methods
descendant?(descendant, dir)
click to toggle source
True if a path points to a descendant of the directory in anothe
# File lib/police/vminfo/paths.rb, line 55 def descendant?(descendant, dir) if descendant.length > dir.length descendant[0, dir.length] == dir && descendant[dir.length] == File::SEPARATOR else descendant == dir end end