Class: Layout::Layers
Relationships | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
self,
Enumerable
|
|
Inherits: | Object |
Overview
The Layers class is a container class for all layers in a Document
.
Instance Attribute Summary
Instance Method Summary
Instance Attribute Details
#active ⇒ Layout::Layer (rw)
#active=(layer) ⇒ Layout::Layer (rw)
#active=(index) ⇒ Layout::Layer
Instance Method Details
#[](index) ⇒ Layout::Layer
The #[]
method returns a value from the array of Layer
s.
#add(shared = false) ⇒ Layout::Layer
#add(name, shared = false) ⇒ Layout::Layer
#each {|layer| ... }
Note:
Don’t remove content from this collection while iterating over it with #each
. This would change the size of the collection and cause elements to be skipped as the indices change. Instead copy the current collection to an array using to_a
and then use each
on the array, when removing content.
The #each
method iterates through all of the Layer
s.
#index(layer) ⇒ Integer
?
#length ⇒ Integer
Also known as: #size
The #length
method returns the number of Layer
s.
#remove(layer, delete_entities = false)
#remove(index, delete_entities = false)
#reorder(layer, new_index)
#reorder(index, new_index)
#size
Alias for #length.