Class: Lapillus::FadeIn
- Defined in:
- lib/lapillus/behaviours.rb
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
49 50 51 52 53 54 55 |
# File 'lib/lapillus/behaviours.rb', line 49 def render_to_element(element) attribute = REXML::Attribute.new(identifier, "new Effect.Appear('#{value}');") def attribute.to_string return "#@expanded_name=\"#@value\"" end element.add_attribute(attribute) end |