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
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/activesupport-3.2.22.5/lib/active_support/basic_object.rb
activesupport-3.2.22.5 lib/active_support/basic_object.rb
activesupport-3.2.22.4 lib/active_support/basic_object.rb
activesupport-3.2.22.3 lib/active_support/basic_object.rb
activesupport-3.2.22.2 lib/active_support/basic_object.rb
activesupport-3.2.22.1 lib/active_support/basic_object.rb
classiccms-0.7.5 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/basic_object.rb
classiccms-0.7.4 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/basic_object.rb
classiccms-0.7.3 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/basic_object.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/basic_object.rb
activesupport-3.2.22 lib/active_support/basic_object.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.12/lib/active_support/basic_object.rb
activesupport-3.2.21 lib/active_support/basic_object.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/basic_object.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/basic_object.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/basic_object.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/activesupport-3.2.18/lib/active_support/basic_object.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/activesupport-3.2.18/lib/active_support/basic_object.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/basic_object.rb
activesupport-3.2.20 lib/active_support/basic_object.rb