Class: AttributeName
- Inherits:
-
Object
- Object
- AttributeName
- Defined in:
- lib/r4x/qname.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(s) ⇒ AttributeName
constructor
A new instance of AttributeName.
- #to_s ⇒ Object
Constructor Details
#initialize(s) ⇒ AttributeName
Returns a new instance of AttributeName.
78 79 80 |
# File 'lib/r4x/qname.rb', line 78 def initialize( s ) @name = QName.new(s) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
76 77 78 |
# File 'lib/r4x/qname.rb', line 76 def name @name end |
Instance Method Details
#to_s ⇒ Object
82 83 84 |
# File 'lib/r4x/qname.rb', line 82 def to_s "@#{@name}" end |