Class: PSD::Renderer::MaskCanvas

Inherits:
Canvas
  • Object
show all
Defined in:
lib/psd/renderer/mask_canvas.rb

Instance Attribute Summary

Attributes inherited from Canvas

#canvas, #fill_opacity, #height, #node, #opacity, #opts, #width

Instance Method Summary collapse

Methods inherited from Canvas

#method_missing, #paint_to

Constructor Details

#initialize(node, width = nil, height = nil, opts = {}) ⇒ MaskCanvas

Returns a new instance of MaskCanvas.



6
7
8
9
# File 'lib/psd/renderer/mask_canvas.rb', line 6

def initialize(node, width = nil, height = nil, opts = {})
  super
  apply_masks
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PSD::Renderer::Canvas