Sha256: 45b325cb17eb2e50e64799e60b2983e1de2c73c7392a1a18f005ddfde5ddfed4
Contents?: true
Size: 645 Bytes
Versions: 2
Compression:
Stored size: 645 Bytes
Contents
module FasterPath def self.sledgehammer_everything! ::File.class_eval do def basename(pth) FasterPath.basename(pth) end end ::Pathname.class_eval 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/monkeypatches.rb |
faster_path-0.1.7 | lib/faster_path/optional/monkeypatches.rb |