lib/faster_path/optional/refinements.rb in faster_path-0.2.4 vs lib/faster_path/optional/refinements.rb in faster_path-0.2.5
- old
+ new
@@ -46,19 +46,33 @@
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
FasterPath.entries_compat(@path)
end if !!ENV['WITH_REGRESSION']
def has_trailing_separator?(pth)
FasterPath.has_trailing_separator?(pth)
+ end
+
+ def join(*args)
+ FasterPath.join(self, *args)
end
def plus(pth, pth2)
FasterPath.plus(pth, pth2)
end