Sha256: df88cfb672fb123088aa0278f7e3cd99dd6a5f175f4480ba906704a8dd6979d9
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
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 def chop_basename(pth) FasterPath.chop_basename(pth) end private :chop_basename def relative? FasterPath.relative?(@path) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
faster_path-0.1.2 | lib/faster_path/optional/refinements.rb |