Sha256: 4d3ddb6d7979814dde655a3031022477178a2a3577bfea3f53db8b529de9d834
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 Bytes
Contents
module FasterPath module RefineFile refine File do def basename(pth) FasterPath.basename(pth) end end end module RefinePathname 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 def relative? FasterPath.relative?(@path) end def add_trailing_separator(pth) FasterPath.add_trailing_separator(pth) end private :add_trailing_separator end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faster_path-0.1.8 | lib/faster_path/optional/refinements.rb |
faster_path-0.1.7 | lib/faster_path/optional/refinements.rb |