static public Method

Builder.check_for_name_collision(klass, method_name, defined_constant=nil)

There's no documentation for this item.

Source Code

# File builder/xchar.rb, line 12
def self.check_for_name_collision(klass, method_name, defined_constant=nil)
  if klass.instance_methods.include?(method_name)
    fail RuntimeError,
      "Name Collision: Method '#{method_name}' is already defined in #{klass}"
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.