Class: ActionElement

Inherits:
Object
  • Object
show all
Defined in:
lib/ribit/actionelement.rb

Overview

Models actions in xhtml document

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



23
24
25
# File 'lib/ribit/actionelement.rb', line 23

def id
  @id
end

Instance Method Details

#removeObject

Removes the element from the document



34
35
36
# File 'lib/ribit/actionelement.rb', line 34

def remove
	@element.remove
end