Method: HexaPDF::Content::Operator::BaseOperator#serialize
- Defined in:
- lib/hexapdf/content/operator.rb
#serialize(serializer, *operands) ⇒ Object
Returns the string representation of the operator, i.e.
operand1 operand2 operand3 name
103 104 105 106 107 108 109 |
# File 'lib/hexapdf/content/operator.rb', line 103 def serialize(serializer, *operands) result = ''.b operands.each do |operand| result << serializer.serialize(operand) << " " end result << name << "\n" end |