blankslate.rb 693 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env ruby
  2. #--
  3. # Copyright 2004, 2006 by Jim Weirich (jim@weirichhouse.org).
  4. # All rights reserved.
  5. # Permission is granted for use, copying, modification, distribution,
  6. # and distribution of modified versions of this work as long as the
  7. # above copyright notice is included.
  8. #++
  9. ######################################################################
  10. # BlankSlate has been promoted to a top level name and is now
  11. # available as a standalone gem. We make the name available in the
  12. # Builder namespace for compatibility.
  13. #
  14. module Builder
  15. if Object::const_defined?(:BasicObject)
  16. BlankSlate = ::BasicObject
  17. else
  18. require 'blankslate'
  19. BlankSlate = ::BlankSlate
  20. end
  21. end