class Pathname
Public Instance Methods
in?(dir)
click to toggle source
# File lib/pith/pathname_ext.rb, line 10 def in?(dir) prefix = "#{dir}/" self.to_s[0,prefix.length] == prefix end
touch(mtime = nil)
click to toggle source
# File lib/pith/pathname_ext.rb, line 5 def touch(mtime = nil) FileUtils.touch(self.to_s) utime(mtime, mtime) if mtime end