Sha256: f64a01353c7b2a02b0ec9c34fd9a6d1de0060f87d7cb1023f925c0e4f630ad88

Contents?: true

Size: 388 Bytes

Versions: 189

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

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

    # Let ActiveSupport::ProxyObject at least raise exceptions.
    def raise(*args)
      ::Object.send(:raise, *args)
    end
  end
end

Version data entries

189 entries across 175 versions & 23 rubygems

Version Path
activesupport-7.0.8.7 lib/active_support/proxy_object.rb
activesupport-7.0.8.6 lib/active_support/proxy_object.rb
activesupport-6.1.7.10 lib/active_support/proxy_object.rb
activesupport-6.1.7.9 lib/active_support/proxy_object.rb
activesupport-7.0.8.5 lib/active_support/proxy_object.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8.4/lib/active_support/proxy_object.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.5.1/lib/active_support/proxy_object.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.5.1/lib/active_support/proxy_object.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.5.1/lib/active_support/proxy_object.rb
activesupport-7.0.8.4 lib/active_support/proxy_object.rb
activesupport-6.1.7.8 lib/active_support/proxy_object.rb
activesupport-7.0.8.1 lib/active_support/proxy_object.rb
activesupport-6.1.7.7 lib/active_support/proxy_object.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/proxy_object.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activesupport-7.0.3.1/lib/active_support/proxy_object.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/proxy_object.rb
activesupport-7.0.8 lib/active_support/proxy_object.rb
activesupport-7.0.7.2 lib/active_support/proxy_object.rb
activesupport-6.1.7.6 lib/active_support/proxy_object.rb
activesupport-7.0.7.1 lib/active_support/proxy_object.rb