Sha256: e1bf955d82543f26f077777862693e047608bbc04b85659f38e7a0bbde4189b9
Contents?: true
Size: 423 Bytes
Versions: 73
Compression:
Stored size: 423 Bytes
Contents
# 1.9.1 fixes # Make Pathname compatible with 1.8.7 Pathname. unless Pathname.instance_methods.include?( :=~ ) class Pathname def self::glob( *args ) # :yield: p args = args.collect {|p| p.to_s } if block_given? Dir.glob(*args) {|f| yield self.new(f) } else Dir.glob(*args).map {|f| self.new(f) } end end def =~( other ) self.to_s =~ other end def to_str self.to_s end end end
Version data entries
73 entries across 73 versions & 14 rubygems