Sha256: 86bd3a13211d0358390cee9f7f3ec1d04b74869e3076c4150e43bfcd5b47ac73

Contents?: true

Size: 445 Bytes

Versions: 3

Compression:

Stored size: 445 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 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/refinements.rb
faster_path-0.1.4 lib/faster_path/optional/refinements.rb
faster_path-0.1.3 lib/faster_path/optional/refinements.rb