Method: PSD::Node::Root#initialize
- Defined in:
- lib/psd/nodes/root.rb
#initialize(psd) ⇒ Root
Stores a reference to the parsed PSD and builds the tree hierarchy.
26 27 28 29 30 31 |
# File 'lib/psd/nodes/root.rb', line 26 def initialize(psd) super self.class.layer_for_psd(psd) @psd = psd build_hierarchy end |