rails/activesupport/lib/active_support/proxy_object.rb
Petrik ec28de4260 Add missing headers to Active Support docs [ci-skip]
Having a h1 heading will improve SEO and makes things look more consistent.
2023-04-23 16:02:56 +02:00

18 lines
427 B
Ruby

# frozen_string_literal: true
module ActiveSupport
# = Active Support Proxy \Object
#
# 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