lib/psd/layer/blend_modes.rb in psd-3.2.4 vs lib/psd/layer/blend_modes.rb in psd-3.3.1
- old
+ new
@@ -1,11 +1,13 @@
class PSD
class Layer
module BlendModes
+ extend Forwardable
+
attr_reader :blend_mode
- delegate :opacity, :visible, :clipped?, to: :blend_mode
+ def_delegators :blend_mode, :opacity, :visible, :clipped?
alias_method :visible?, :visible
# Is this layer hidden?
def hidden?
!visible
@@ -25,6 +27,6 @@
@blend_mode = BlendMode.new(@file)
@blend_mode.parse!
end
end
end
-end
\ No newline at end of file
+end