1 # A base class with no predefined methods that tries to behave like Builder's
2 # BlankSlate in Ruby 1.9. In Ruby pre-1.9, this is actually the
3 # Builder::BlankSlate class.
5 # Ruby 1.9 introduces BasicObject which differs slightly from Builder's
6 # BlankSlate that has been used so far. ActiveSupport::BasicObject provides a
7 # barebones base class that emulates Builder::BlankSlate while still relying on
8 # Ruby 1.9's BasicObject in Ruby 1.9.
10 if defined? ::BasicObject
11 class BasicObject
< ::BasicObject
15 # Let ActiveSupport::BasicObject at least raise exceptions.
17 ::Object.send(:raise, *args
)
22 BasicObject
= BlankSlate