Class: Tilia::VObject::ElementList
- Inherits:
-
Array
- Object
- Array
- Tilia::VObject::ElementList
- Defined in:
- lib/tilia/v_object/element_list.rb
Overview
VObject ElementList.
This class represents a list of elements. Lists are the result of queries, such as doing vcalendar.vevent where there’s multiple VEVENT objects.
Instance Method Summary collapse
- #delete(_offset) ⇒ Object
-
#initialize(*args) ⇒ ElementList
constructor
A new instance of ElementList.
Constructor Details
#initialize(*args) ⇒ ElementList
Returns a new instance of ElementList.
8 9 10 11 |
# File 'lib/tilia/v_object/element_list.rb', line 8 def initialize(*args) super(*args) freeze end |
Instance Method Details
#delete(_offset) ⇒ Object
13 14 15 |
# File 'lib/tilia/v_object/element_list.rb', line 13 def delete(_offset) fail 'RuntimeError: can\'t modify frozen Array' end |