lib/psd/node_root.rb in psd-1.2.2 vs lib/psd/node_root.rb in psd-1.3.0

- old
+ new

@@ -4,11 +4,11 @@ # Represents the root node of a Photoshop document class Root < PSD::Node include PSD::HasChildren include PSD::Node::ParseLayers - attr_reader :children + attr_accessor :children # Stores a reference to the parsed PSD and builds the # tree hierarchy. def initialize(psd) @psd = psd @@ -48,9 +48,11 @@ # The depth of the root node is always 0. def depth 0 end + + def psd; @psd; end private def build_hierarchy @children = [] \ No newline at end of file