module JamfRubyExtensions::Pathname::Predicates

Public Instance Methods

j_include?(other) click to toggle source

does a path include another? i.e. is ‘other’ a descendant of self ?

   # File lib/jamf/ruby_extensions/pathname/predicates.rb
41 def j_include?(other)
42   eps = expand_path.to_s
43   oeps = other.expand_path.to_s
44   oeps != eps && oeps.start_with?(eps)
45 end
Also aliased as: jss_include?
j_real_file?() click to toggle source

Is this a real file rather than a symlink? @see FileTest.real_file

   # File lib/jamf/ruby_extensions/pathname/predicates.rb
34 def j_real_file?
35   FileTest.real_file? self
36 end
Also aliased as: jss_real_file?
jss_include?(other)
Alias for: j_include?
jss_real_file?()
Alias for: j_real_file?