# File lib/railsbench/perf_utils.rb, line 51 def self.open_or_die(filename, &block) filename = filename.sub(/^\/([cdefgh])(\/)/, '\1:\2') if RUBY_PLATFORM =~ /win32/ begin if stat(filename).readable? open(filename, &block) else die "file #{filename} is unreadable" end rescue die "file #{filename} does not exist" end end
Generated with the Darkfish Rdoc Generator 2.