Class: Lapillus::AttributeModifier
- Inherits:
-
Behaviour
- Object
- RenderableComponent
- Component
- Behaviour
- Lapillus::AttributeModifier
- Defined in:
- lib/lapillus/behaviours.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Component
#behaviours, #identifier, #model, #property, #visible
Instance Method Summary collapse
Methods inherited from Behaviour
Methods inherited from Component
#add_behaviour, #behaviour, #has_behaviour?, #has_model?, #has_parent?, #initialize, #parent, #path, #response_page=, #session, #value, #webpage
Methods inherited from RenderableComponent
#initialize, #on_render, #render_behaviours, #render_children, #render_component, #render_container, #visible?
Constructor Details
This class inherits a constructor from Lapillus::Behaviour
Instance Method Details
#render_to_element(element) ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/lapillus/behaviours.rb', line 44 def render_to_element(element) attribute = REXML::Attribute.new(identifier.to_s, value) # def attribute.to_string # return "#@expanded_name=\"#@value\"" # end element.add_attribute(attribute) end |