Class: RubyApp::Elements::List

Inherits:
RubyApp::Element show all
Defined in:
lib/ruby_app/elements/list.rb

Direct Known Subclasses

RubyApp::Elements::Lists::Select

Defined Under Namespace

Classes: ClickedEvent

Instance Attribute Summary collapse

Attributes inherited from RubyApp::Element

#attributes

Instance Method Summary collapse

Methods inherited from RubyApp::Element

#element_id, get_element

Methods included from Mixins::ConfigureMixin

#configure

Methods included from Mixins::TranslateMixin

#localize, #translate

Methods included from Mixins::TemplateMixin

#exclude_parent_template, #exclude_parent_template?, #get_templates, #template_name, #template_path

Methods included from Mixins::RenderMixin

#clear_content_for, #content_for, #render, #rendered?

Constructor Details

#initializeList

Returns a new instance of List.



35
36
37
38
# File 'lib/ruby_app/elements/list.rb', line 35

def initialize
  super
  @items = []
end

Instance Attribute Details

#itemsObject

Returns the value of attribute items.



31
32
33
# File 'lib/ruby_app/elements/list.rb', line 31

def items
  @items
end