Sha256: 17a7c11cd9560bc9fd8afc25a2997cfde913a2dc19669ca89eaa3b438f92e868
Contents?: true
Size: 399 Bytes
Versions: 50
Compression:
Stored size: 399 Bytes
Contents
# frozen_string_literal: true class Object # Makes backticks behave (somewhat more) similarly on all platforms. # On win32 `nonexistent_command` raises Errno::ENOENT; on Unix, the # spawned shell prints a message to stderr and sets $?. We emulate # Unix on the former but not the latter. def `(command) #:nodoc: super rescue Errno::ENOENT => e STDERR.puts "#$0: #{e}" end end
Version data entries
50 entries across 50 versions & 8 rubygems