Sha256: 1d9aa78b6fa856b2f68b55007beb8b8c3163f3b807b4700a203f44d83237d48c

Contents?: true

Size: 313 Bytes

Versions: 4

Compression:

Stored size: 313 Bytes

Contents

module Ahnnotate
  module Refinement
    module PathnameGlob
      if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.5.0")
        refine Pathname do
          def glob(pattern)
            Dir.glob(self.join(pattern)).map { |path| Pathname.new(path) }
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ahnnotate-0.5.1 lib/ahnnotate/refinement/pathname_glob.rb
ahnnotate-0.5.0 lib/ahnnotate/refinement/pathname_glob.rb
ahnnotate-0.4.0 lib/ahnnotate/refinement/pathname_glob.rb
ahnnotate-0.3.0 lib/ahnnotate/refinement/pathname_glob.rb