Module: PSD::HasChildren

Included in:
Node::Group, Node::Root
Defined in:
lib/psd/nodes/has_children.rb

Instance Method Summary collapse

Instance Method Details

#groupsObject

Returns all group/folder children of this node.



4
5
6
# File 'lib/psd/nodes/has_children.rb', line 4

def groups
  @children.select{ |c| c.is_a?(PSD::Group) }
end

#layersObject

Returns all layer children of this node.



9
10
11
# File 'lib/psd/nodes/has_children.rb', line 9

def layers
  @children.select{ |c| c.is_a?(PSD::Layer) }
end