lib/faster_path/optional/refinements.rb in faster_path-0.1.1 vs lib/faster_path/optional/refinements.rb in faster_path-0.1.2
- old
+ new
@@ -1,5 +1,13 @@
module FasterPath
+ module RefineFile
+ refine File do
+ def basename(pth)
+ FasterPath.basename(pth)
+ end if FasterPath.respond_to? :basename
+ end
+ end unless true # No need to open class when we're not using it yet
+
module RefinePathname
refine Pathname do
def absolute?
FasterPath.absolute?(@path)
end