Class: Magnolia::Tag
- Inherits:
-
Object
- Object
- Magnolia::Tag
- Defined in:
- lib/magnolia/magnolia.rb
Overview
class Mark
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
474 475 476 |
# File 'lib/magnolia/magnolia.rb', line 474 def count @count end |
#name ⇒ Object
Returns the value of attribute name.
474 475 476 |
# File 'lib/magnolia/magnolia.rb', line 474 def name @name end |
Class Method Details
.from_xml(xml) ⇒ Object
477 478 479 480 481 482 |
# File 'lib/magnolia/magnolia.rb', line 477 def from_xml(xml) t = Tag.new t.name = xml.attributes['name'] t.count = xml.attributes['count'] t end |