Class: Eiwa::Tag::List
Overview
For containers of lists or repeated elements
Defined Under Namespace
Classes: Item
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Attributes inherited from Any
#characters, #parent, #tag_name
Instance Method Summary collapse
- #end_child(child) ⇒ Object
-
#initialize ⇒ List
constructor
A new instance of List.
Methods inherited from Any
#add_characters, #end_self, #start, #to_s
Constructor Details
#initialize ⇒ List
Returns a new instance of List.
9 10 11 |
# File 'lib/eiwa/tag/list.rb', line 9 def initialize @items = [] end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
7 8 9 |
# File 'lib/eiwa/tag/list.rb', line 7 def items @items end |