Module: Builder

Defined in:
lib/builder/xchar.rb,
lib/builder/xchar.rb,
lib/builder/xchar.rb,
lib/builder/version.rb,
lib/builder/xmlbase.rb,
lib/builder/xmlevents.rb,
lib/builder/xmlmarkup.rb,
lib/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: IllegalBlockError, XmlBase, XmlEvents, XmlMarkup

Constant Summary collapse

VERSION_NUMBERS =
[
  VERSION_MAJOR = 3,
  VERSION_MINOR = 2,
  VERSION_BUILD = 4,
]
VERSION =
VERSION_NUMBERS.join(".")
BlankSlate =
::BlankSlate

Class Method Summary collapse

Class Method Details

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



13
14
15
16
17
18
# File 'lib/builder/xchar.rb', line 13

def self.check_for_name_collision(klass, method_name, defined_constant=nil)
  if klass.method_defined?(method_name.to_s)
    fail RuntimeError,
	"Name Collision: Method '#{method_name}' is already defined in #{klass}"
  end
end