- Inheritance
- Included Modules
- XMLTokens
Adds named attributes to an object.
Constants
Name | Description | |
---|---|---|
NAMESPLIT | = /^(?:(#{NCNAME_STR}):)?(#{NCNAME_STR})/u |
Attributes
Name | Visibility | R/W | Description |
---|---|---|---|
expanded_name | public | R | The name of the object, valid if set |
name | public | R | The name of the object, valid if set |
prefix | public | RW | The expanded name of the object, valid if name is set |
Aliases
Method | Alias | Description |
---|---|---|
name | → local_name |
Methods
Instance
Visibility | Signature |
---|---|
public | fully_expanded_name () |
public | has_name? ( other, ns=nil ) |
public | name= ( name ) |
Instance Method Detail
fully_expanded_name()
Fully expand the name, even if the prefix wasn‘t specified in the source file.
has_name?( other, ns=nil )
Compares names optionally WITH namespaces
name=( name )
Sets the name and the expanded name