lib/psd/node_group.rb in psd-2.0.0 vs lib/psd/node_group.rb in psd-2.1.0
- old
+ new
@@ -3,20 +3,20 @@
class PSD::Node
# Represents a group, or folder, in the PSD document. It can have
# zero or more children nodes.
class Group < PSD::Node
include PSD::HasChildren
- include PSD::Node::ParseLayers
include PSD::Node::LockToOrigin
attr_reader :name, :top, :left, :bottom, :right
# Parses the descendant tree structure and figures out the bounds
# of the layers within this folder.
def initialize(folder)
@name = folder[:name]
@layer = folder[:layer]
- parse_layers(folder[:layers])
+
+ super(folder[:layers])
get_dimensions
end
# Calculated height of this folder.
def rows