has_name?( other, ns=nil )
public
Compares names optionally WITH namespaces
Show source
def has_name?( other, ns=nil )
if ns
return (namespace() == ns and name() == other)
elsif other.include? ":"
return fully_expanded_name == other
else
return name == other
end
end