Module: Builder

Defined in:
lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/xchar.rb,
lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/css.rb,
lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/xchar.rb,
lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb,
lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb,
lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb,
lib/gems/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/blankslate.rb

Overview

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.

Defined Under Namespace

Modules: XChar Classes: CSS, IllegalBlockError, XmlBase, XmlEvents, XmlMarkup

Constant Summary collapse

BlankSlate =
::BlankSlate

Class Method Summary collapse

Class Method Details

.check_for_name_collision(klass, method_name, defined_constant = nil) ⇒ Object



12
13
14
15
16
17
# File 'lib/gems/activesupport-2.2.2/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