Module: CSD::Vendor::ActiveSupport::ObjectExtensions
- Included in:
- Object
- Defined in:
- lib/csd/vendor/active_support/object_extensions.rb
Overview
This module comprises extensions to Object (the parent of all classes).
Instance Method Summary collapse
-
#`(command) ⇒ Object
Makes backticks behave (somewhat more) similarly on all platforms.
Instance Method Details
#`(command) ⇒ 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.
24 25 26 27 28 |
# File 'lib/csd/vendor/active_support/object_extensions.rb', line 24 def `(command) #:nodoc: super rescue Errno::ENOENT => e STDERR.puts "#$0: #{e}" end |