Sha256: 26db446770554e5ce37fc28493c07423ba13cd6e17d0466edd36e98e37664834
Contents?: true
Size: 622 Bytes
Versions: 49
Compression:
Stored size: 622 Bytes
Contents
if RUBY_PLATFORM =~ /mingw|mswin/ class File # buggy File.executable? on windows class << self undef :executable? def executable? *args File.stat(*args).executable? rescue nil end end end end if RUBY_VERSION == '1.9.1' # 1.9.1 bug if File.basename(__FILE__).frozen? class File class << self alias :original_basename :basename def File.basename *args original_basename(*args).dup end end end end end =begin rubydoctest: non frozen >> File.basename(__FILE__).frozen? => false =end
Version data entries
49 entries across 49 versions & 1 rubygems