class HexaPDF::Content::Operator::BaseOperator

reasons each operator should provide a custom #serialize method.
A default implementation for the #serialize method is provided. However, for performance
Base class for operator implementations.

def initialize(name)

Initialize the operator called +name+.
def initialize(name)
  @name = name.freeze
end

def invoke(*)

This base version does nothing!

Invokes the operator so that it performs its job.
def invoke(*)
end

def serialize(serializer, *operands)

operand1 operand2 operand3 name

Returns the string representation of the operator, i.e.
def serialize(serializer, *operands)
  result = ''.b
  operands.each do |operand|
    result << serializer.serialize(operand) << " "
  end
  result << name << "\n"
end