Method: PSD::Node::Group#initialize
- Defined in:
- lib/psd/node_group.rb
#initialize(folder) ⇒ Group
Parses the descendant tree structure and figures out the bounds of the layers within this folder.
15 16 17 18 19 20 |
# File 'lib/psd/node_group.rb', line 15 def initialize(folder) @name = folder[:name] @layer = folder[:layer] parse_layers(folder[:layers]) get_dimensions end |