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

- old
+ new

@@ -53,9 +53,15 @@ visible: visible?, children: children.map(&:to_hash) }) end + # If the method is missing, we blindly send it to the layer. + # The layer handles the case in which the method doesn't exist. + def method_missing(method, *args, &block) + @layer.send(method, *args, &block) + end + private def get_dimensions @left = @children.map(&:left).min || 0 @top = @children.map(&:top).min || 0 \ No newline at end of file