Class: Lapillus::UniqueIdentifier

Inherits:
AttributeModifier show all
Defined in:
lib/lapillus/behaviours.rb

Overview

TODO test

Direct Known Subclasses

Draggable, Droppable

Instance Attribute Summary

Attributes inherited from Component

#behaviours, #identifier, #model, #property, #visible

Instance Method Summary collapse

Methods inherited from AttributeModifier

#render_to_element

Methods inherited from Component

#add_behaviour, #behaviour, #has_behaviour?, #has_model?, #has_parent?, #parent, #path, #response_page=, #session, #webpage

Methods inherited from RenderableComponent

#on_render, #render_behaviours, #render_children, #render_component, #render_container, #render_to_element, #visible?

Constructor Details

#initializeUniqueIdentifier

Returns a new instance of UniqueIdentifier.



55
56
57
# File 'lib/lapillus/behaviours.rb', line 55

def initialize
  super(:id)
end

Instance Method Details

#valueObject



58
59
60
# File 'lib/lapillus/behaviours.rb', line 58

def value
  parent.path
end