Module: PSD::HasChildren
- Included in:
- Node::Group, Node::Root
- Defined in:
- lib/psd/nodes/has_children.rb
Instance Method Summary collapse
-
#groups ⇒ Object
Returns all group/folder children of this node.
-
#layers ⇒ Object
Returns all layer children of this node.
Instance Method Details
#groups ⇒ Object
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 |