class CTioga2::Graphics::Elements::TiogaPrimitiveCall::TiogaPrimitive

Some kind of reimplementation of Command for graphics primitives

Attributes

compulsory_arguments[RW]

An array of compulsory arguments (type specifications)

funcall[RW]

A block that will receive a FigureMaker object, the compulsory arguments and a hash containing optional ones.

name[RW]

A name (not very useful, but, well, we never know)

optional_arguments[RW]

A hash of optional arguments

primitive_class[RW]

The underlying nameless class

Public Class Methods

new(name, comp, opts = {}, &code) click to toggle source

Creates a TiogaPrimitive object

# File lib/ctioga2/graphics/elements/primitive.rb, line 58
def initialize(name, comp, opts = {}, &code)
  @name = name
  @compulsory_arguments = comp
  @optional_arguments = opts
  @funcall = code
end