aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/lib/active_support/basic_object.rb
blob: 6ccb0cd525819b4eb270b4b3c96643d6163c5b3d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                    




                                                                          
 


                                                               
       
     
   
module ActiveSupport
  # 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
end