Sha256: 65d390dd64a63f89563f4c11235d1cc1dd2c59438b4729e4b836068de194284a

Contents?: true

Size: 576 Bytes

Versions: 337

Compression:

Stored size: 576 Bytes

Contents

module ActiveSupport
  if defined? ::BasicObject
    # A class with no predefined methods that behaves similarly to Builder's
    # BlankSlate. Used for proxy classes.
    class BasicObject < ::BasicObject
      undef_method :==
      undef_method :equal?

      # Let ActiveSupport::BasicObject at least raise exceptions.
      def raise(*args)
        ::Object.send(:raise, *args)
      end
    end
  else
    class BasicObject #:nodoc:
      instance_methods.each do |m|
        undef_method(m) if m.to_s !~ /(?:^__|^nil\?$|^send$|^object_id$)/
      end
    end
  end
end

Version data entries

337 entries across 293 versions & 32 rubygems

Version Path
challah-0.9.1.beta vendor/bundle/gems/activesupport-3.2.11/lib/active_support/basic_object.rb
activesupport-3.2.11 lib/active_support/basic_object.rb
activesupport-3.1.10 lib/active_support/basic_object.rb
activesupport-3.0.19 lib/active_support/basic_object.rb
activesupport-2.3.15 lib/active_support/basic_object.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.10/lib/active_support/basic_object.rb
challah-0.9.0 vendor/bundle/gems/activesupport-3.2.9/lib/active_support/basic_object.rb
activesupport-3.2.10 lib/active_support/basic_object.rb
activesupport-3.1.9 lib/active_support/basic_object.rb
activesupport-3.0.18 lib/active_support/basic_object.rb
classiccms-0.6.9 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/basic_object.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/activesupport-3.2.9/lib/active_support/basic_object.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/activesupport-3.2.9/lib/active_support/basic_object.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/activesupport-3.2.9/lib/active_support/basic_object.rb
jquery_regex-0.0.3 vendor/bundle/gems/activesupport-3.2.9/lib/active_support/basic_object.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/activesupport-3.2.9/lib/active_support/basic_object.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/activesupport-3.2.9/lib/active_support/basic_object.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/activesupport-3.2.9/lib/active_support/basic_object.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/activesupport-3.2.9/lib/active_support/basic_object.rb
jquery_regex-0.0.1 vendor/bundle/gems/activesupport-3.2.9/lib/active_support/basic_object.rb