module Builder
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.
Constants
- BlankSlate
BlankSlate
provides an abstract base class with no predefined methods (except for_\send_
and_\id_
).BlankSlate
is useful as a base class when writing classes that depend uponmethod_missing
(e.g. dynamic proxies).- VERSION
- VERSION_NUMBERS
Public Class Methods
check_for_name_collision(klass, method_name, defined_constant=nil)
click to toggle source
# File lib/builder/xchar.rb 13 def self.check_for_name_collision(klass, method_name, defined_constant=nil) 14 if klass.method_defined?(method_name.to_s) 15 fail RuntimeError, 16 "Name Collision: Method '#{method_name}' is already defined in #{klass}" 17 end 18 end