Class: Layout::Entities
- Inherits:
-
Object
- Object
- Layout::Entities
- Includes:
- Enumerable
Overview
A collection of drawing entities obtained from Layout::Page#entities, Layout::Page#nonshared_entities, or Layout::Document#shared_entities. Iteration proceeds from bottom to top in stacking order. Each access reflects the current drawing.
Instance Method Summary # collapse
-
#length ⇒ Integer
Number of objects.
-
#size ⇒ Integer
Alias for #length.
-
#each ⇒ Layout::Entities
Traverse from bottom to top.
-
#[] ⇒ Layout::Entity, nil
Retrieve objects by position, with 0 being at the bottom.
Instance Method Details
entities.length ⇒ Integer
Number of objects.
entities.size ⇒ Integer
Alias for #length.
entities.each { |entity| ... } ⇒ Layout::Entities
Traverse from bottom to top.
entities[index] ⇒ Layout::Entity, nil
Retrieve objects by position, with 0 being at the bottom.