Sha256: 1ce7c53799bbbb3dec672cbf0670a3d77c4e836a35515995a06fd009ff604c2b
Contents?: true
Size: 368 Bytes
Versions: 428
Compression:
Stored size: 368 Bytes
Contents
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
428 entries across 375 versions & 42 rubygems