Class: DataType
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Tag
Instance Method Summary collapse
-
#initialize(xml, parent_tag) ⇒ DataType
constructor
A new instance of DataType.
- #to_s ⇒ Object
Methods inherited from Tag
Constructor Details
#initialize(xml, parent_tag) ⇒ DataType
Returns a new instance of DataType.
9 10 11 12 13 |
# File 'lib/xmimodel/data_type.rb', line 9 def initialize(xml, parent_tag) super(xml, parent_tag) @name = xml.attribute("name").to_s.strip end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/xmimodel/data_type.rb', line 7 def name @name end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/xmimodel/data_type.rb', line 15 def to_s "DataType[#{@name}]" end |