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?, #on_render, #parent, #path, #render_component, #response_page=, #session, #visible?, #webpage

Constructor Details

#initializeUniqueIdentifier

Returns a new instance of UniqueIdentifier.



40
41
42
# File 'lib/lapillus/behaviours.rb', line 40

def initialize
  super("id")
end

Instance Method Details

#valueObject



43
44
45
# File 'lib/lapillus/behaviours.rb', line 43

def value
  parent.path
end