Class: HexaPDF::Content::Operator::LineTo

Inherits:
BaseOperator show all
Defined in:
lib/hexapdf/content/operator.rb

Overview

Implementation of the ā€˜lā€™ operator.

See: PDF2.0 s8.5.2.1

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Constructor Details

#initializeLineTo

Creates the operator.



583
584
585
# File 'lib/hexapdf/content/operator.rb', line 583

def initialize
  super('l')
end

Instance Method Details

#invoke(_processor, _x, _y) ⇒ Object

:nodoc:



587
588
# File 'lib/hexapdf/content/operator.rb', line 587

def invoke(_processor, _x, _y) #:nodoc:
end

#serialize(serializer, x, y) ⇒ Object

:nodoc:



590
591
592
# File 'lib/hexapdf/content/operator.rb', line 590

def serialize(serializer, x, y) #:nodoc:
  "#{serializer.serialize_numeric(x)} #{serializer.serialize_numeric(y)} l\n"
end