BlankSlate has been promoted to a top level name and is now available as a standalone gem. We make the name available in the Builder namespace for compatibility.

If the Builder::XChar module is not currently defined, fail on any name clashes in standard library classes.

Namespace
Methods
C
Constants
BlankSlate = ::BlankSlate
 
Class Public methods
check_for_name_collision(klass, method_name, defined_constant=nil)
# File activesupport/lib/active_support/vendor/builder-2.1.2/builder/xchar.rb, line 12
def self.check_for_name_collision(klass, method_name, defined_constant=nil)
  if klass.instance_methods.include?(method_name.to_s)
    fail RuntimeError,
      "Name Collision: Method '#{method_name}' is already defined in #{klass}"
  end
end