lib/faster_path/optional/refinements.rb in faster_path-0.1.5 vs lib/faster_path/optional/refinements.rb in faster_path-0.1.6
- old
+ new
@@ -11,9 +11,13 @@
refine Pathname do
def absolute?
FasterPath.absolute?(@path)
end
+ def directory?
+ FasterPath.directory?(@path)
+ end
+
def chop_basename(pth)
FasterPath.chop_basename(pth)
end
private :chop_basename