Sha256: 84b5b23e2f4edbb799cefda8d794977b7f0fa897bc63c6f59f47198670db1723

Contents?: true

Size: 288 Bytes

Versions: 28

Compression:

Stored size: 288 Bytes

Contents

class PSD
  module HasChildren
    # Returns all group/folder children of this node.
    def groups
      @children.select{ |c| c.is_a?(PSD::Group) }
    end

    # Returns all layer children of this node.
    def layers
      @children.select{ |c| c.is_a?(PSD::Layer) }
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
bench9000-0.1 vendor/psd.rb/lib/psd/nodes/has_children.rb
psd-2.1.2 lib/psd/nodes/has_children.rb
psd-2.1.1 lib/psd/nodes/has_children.rb
psd-2.1.0 lib/psd/nodes/has_children.rb
psd-2.0.0 lib/psd/nodes/has_children.rb
psd-1.5.0 lib/psd/nodes/has_children.rb
psd-1.4.5 lib/psd/nodes/has_children.rb
psd-1.4.4 lib/psd/nodes/has_children.rb
psd-1.4.3 lib/psd/nodes/has_children.rb
psd-1.4.2 lib/psd/nodes/has_children.rb
psd-1.4.1 lib/psd/nodes/has_children.rb
psd-1.4.0 lib/psd/nodes/has_children.rb
psd-1.3.3 lib/psd/nodes/has_children.rb
psd-1.3.2 lib/psd/nodes/has_children.rb
psd-1.3.0 lib/psd/nodes/has_children.rb
psd-1.2.2 lib/psd/nodes/has_children.rb
psd-1.2.1 lib/psd/nodes/has_children.rb
psd-1.2.0 lib/psd/nodes/has_children.rb
psd-1.1.1 lib/psd/nodes/has_children.rb
psd-1.1.0 lib/psd/nodes/has_children.rb