blob: 20a0fd8e62014b2fa6127cc67825b5c4ab651b0d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|