Class: Compass::Magick::Type Abstract

Inherits:
Object
  • Object
show all
Includes:
Scriptable
Defined in:
lib/magick/types.rb

Overview

This class is abstract.

Abstract Type class.

Defines the methods all Type instances must implement.

See Also:

Instance Attribute Summary

Attributes included from Scriptable

#context, #options

Instance Method Summary collapse

Instance Method Details

#to_canvas(width, height) ⇒ Canvas

This method is abstract.

Generates a Canvas object.

Parameters:

  • width (Sass::Script::Number)

    The width of the Canvas.

  • height (Sass::Script::Number)

    The height of the Canvas.

Returns:

  • (Canvas)

    The Canvas object which is composed on top of the original image.

Raises:



18
19
20
# File 'lib/magick/types.rb', line 18

def to_canvas(width, height)
  raise AbstractMethod.new("#{self.class} must implement 'to_canvas'")
end