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
Overview
If the Builder::XChar module is not currently defined, fail on any name clashes in standard library classes.
Defined Under Namespace
Modules: XChar Classes: IllegalBlockError, XmlBase, XmlEvents, XmlMarkup
Constant Summary collapse
- VERSION_NUMBERS =
[ VERSION_MAJOR = 3, VERSION_MINOR = 3, VERSION_BUILD = 0, ]
- VERSION =
VERSION_NUMBERS.join(".")
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 |