lib/psd/node_layer.rb in psd-1.2.2 vs lib/psd/node_layer.rb in psd-1.3.0
- old
+ new
@@ -23,16 +23,10 @@
define_method "#{meth}=" do |val|
@layer.send("#{meth}=", val)
end
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
-
# Attempt to translate the layer.
def translate(x=0, y=0)
@layer.translate x, y
end
@@ -64,8 +58,14 @@
type: :layer,
text: @layer.text,
ref_x: @layer.reference_point.x,
ref_y: @layer.reference_point.y
})
+ 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
end
end
\ No newline at end of file