Sha256: 098a75ecd74f90717cf38c34c9b7e1c868598c6d04405d2d413eb3191d108232
Contents?: true
Size: 451 Bytes
Versions: 2
Compression:
Stored size: 451 Bytes
Contents
# # Ruby Extensions # unless File.respond_to?(:read) # Ruby 1.6 and less def File.read(fname) open(fname) {|f| return f.read } end end unless Errno.const_defined?(:ENOTEMPTY) # Windows? module Errno class ENOTEMPTY # We do not raise this exception, implementation is not needed. end end end # for corrupted Windows' stat(2) def File.dir?(path) File.directory?((path[-1,1] == '/') ? path : path + '/') end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
setup-4.0.0 | lib/setup/rubyver.rb |
setup-4.1.0 | lib/setup/rubyver.rb |