Sha256: ee779d824fdadc06f319df3bc7bbcf124bd209c5f80051355483d2df94b01cf8

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 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 chop_basename(pth)
        FasterPath.chop_basename(pth)
      end
      private :chop_basename

      def relative?
        FasterPath.relative?(@path)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
faster_path-0.1.5 lib/faster_path/optional/monkeypatches.rb
faster_path-0.1.4 lib/faster_path/optional/monkeypatches.rb
faster_path-0.1.3 lib/faster_path/optional/monkeypatches.rb