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