Sha256: c91b108b9f5d23a61459b66e785c5e8dc802c28bef0d76f8df137f9380a54cd0

Contents?: true

Size: 1023 Bytes

Versions: 25

Compression:

Stored size: 1023 Bytes

Contents

# -*- encoding: UTF-8 -*-

module CSD
  module Vendor
    # Author
    # 
    # Copyright (c) 2005-2010 David Heinemeier Hansson
    # This module is taken from Ruby on Rails' ActiveSupport
    # Link: http://github.com/rails/rails/tree/master/activesupport
    #
    # License
    # 
    # Active Support is released under the MIT license.
    #
    module ActiveSupport
      # This module comprises extensions to Object (the parent of all classes).
      #
      module ObjectExtensions
        
        # 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
    end
  end
end

class Object #:nodoc:
  include CSD::Vendor::ActiveSupport::ObjectExtensions
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
csd-0.4.3 lib/csd/vendor/active_support/object_extensions.rb
csd-0.4.2 lib/csd/vendor/active_support/object_extensions.rb
csd-0.4.1 lib/csd/vendor/active_support/object_extensions.rb
csd-0.4.0 lib/csd/vendor/active_support/object_extensions.rb
csd-0.3.7 lib/csd/vendor/active_support/object_extensions.rb
csd-0.3.6 lib/csd/vendor/active_support/object_extensions.rb
csd-0.3.5 lib/csd/vendor/active_support/object_extensions.rb
csd-0.3.4 lib/csd/vendor/active_support/object_extensions.rb
csd-0.3.3 lib/csd/vendor/active_support/object_extensions.rb
csd-0.3.2 lib/csd/vendor/active_support/object_extensions.rb
csd-0.3.1 lib/csd/vendor/active_support/object_extensions.rb
csd-0.3.0 lib/csd/vendor/active_support/object_extensions.rb
csd-0.2.2 lib/csd/vendor/active_support/object_extensions.rb
csd-0.2.1 lib/csd/vendor/active_support/object_extensions.rb
csd-0.2.0 lib/csd/vendor/active_support/object_extensions.rb
csd-0.1.18 lib/csd/vendor/active_support/object_extensions.rb
csd-0.1.17 lib/csd/vendor/active_support/object_extensions.rb
csd-0.1.16 lib/csd/vendor/active_support/object_extensions.rb
csd-0.1.15 lib/csd/vendor/active_support/object_extensions.rb
csd-0.1.14 lib/csd/vendor/active_support/object_extensions.rb