lib/faster_path/optional/monkeypatches.rb in faster_path-0.2.4 vs lib/faster_path/optional/monkeypatches.rb in faster_path-0.2.5

- old
+ new

@@ -50,10 +50,20 @@ def cleanpath_aggressive Pathname.new(FasterPath.cleanpath_aggressive(@path)) end private :cleanpath_aggressive + def cleanpath_conservative + Pathname.new(FasterPath.cleanpath_conservative(@path)) + end + private :cleanpath_conservative + + def del_trailing_separator(pth) + FasterPath.del_trailing_separator(pth) + end + private :del_trailing_separator + def directory? FasterPath.directory?(@path) end def entries @@ -62,9 +72,13 @@ def has_trailing_separator?(pth) FasterPath.has_trailing_separator?(pth) end private :has_trailing_separator? + + def join(*args) + FasterPath.join(self, *args) + end def plus(pth, pth2) FasterPath.plus(pth, pth2) end private :plus