Class: 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, #on_render, #parent, #path, #render_component, #response_page=, #session, #value, #visible?, #webpage
Constructor Details
This class inherits a constructor from Lapillus::Behaviour
Instance Method Details
#render_to_element(element) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/lapillus/behaviours.rb', line 29 def render_to_element(element) attribute = REXML::Attribute.new(identifier, value) def attribute.to_string return "#@expanded_name=\"#@value\"" end element.add_attribute(attribute) end |