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.



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

def initialize
  super('l')
end

Instance Method Details

#invoke(_processor, _x, _y) ⇒ Object

:nodoc:



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

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

#serialize(serializer, x, y) ⇒ Object

:nodoc:



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

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