Class: AttributeName

Inherits:
Object
  • Object
show all
Defined in:
lib/r4x/qname.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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_sObject



82
83
84
# File 'lib/r4x/qname.rb', line 82

def to_s
  "@#{@name}"
end