Class: Horseman::Dom::Element
- Inherits:
-
Object
- Object
- Horseman::Dom::Element
- Defined in:
- lib/horseman/dom/element.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id = '', name = '') ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(id = '', name = '') ⇒ Element
Returns a new instance of Element.
5 6 7 8 |
# File 'lib/horseman/dom/element.rb', line 5 def initialize(id='', name='') @id = id @name = name end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/horseman/dom/element.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/horseman/dom/element.rb', line 4 def name @name end |