Class: ActionElement
- Inherits:
-
Object
- Object
- ActionElement
- Defined in:
- lib/ribit/actionelement.rb
Overview
Models actions in xhtml document
Direct Known Subclasses
CompositeLinkActionElement, FormActionElement, LinkActionElement
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id, element) ⇒ ActionElement
constructor
Constructor taking action ID and element.
-
#remove ⇒ Object
Removes the element from the document.
Constructor Details
#initialize(id, element) ⇒ ActionElement
Constructor taking action ID and element
28 29 30 31 |
# File 'lib/ribit/actionelement.rb', line 28 def initialize( id, element ) @id = id @element = element end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
23 24 25 |
# File 'lib/ribit/actionelement.rb', line 23 def id @id end |
Instance Method Details
#remove ⇒ Object
Removes the element from the document
34 35 36 |
# File 'lib/ribit/actionelement.rb', line 34 def remove @element.remove end |