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

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

Overview

Implementation of the ‘l’ operator.

See: PDF1.7 s8.5.2.1

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Constructor Details

#initializeLineTo

Creates the operator.



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

def initialize
  super('l')
end

Instance Method Details

#invoke(_processor, _x, _y) ⇒ Object

:nodoc:



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

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

#serialize(serializer, x, y) ⇒ Object

:nodoc:



592
593
594
# File 'lib/hexapdf/content/operator.rb', line 592

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