Class: Lapillus::FadeIn

Inherits:
Behaviour show all
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

#initialize

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



64
65
66
67
68
69
70
# File 'lib/lapillus/behaviours.rb', line 64

def render_to_element(element)
  attribute = REXML::Attribute.new(identifier.to_s, "new Effect.Appear('#{value}');")
#    def attribute.to_string
#      return "#@expanded_name=\"#@value\""
#    end
  element.add_attribute(attribute)
end