Class: HexaPDF::Content::Operator::LineTo
- Inherits:
-
BaseOperator
- Object
- BaseOperator
- HexaPDF::Content::Operator::LineTo
- 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
Instance Method Summary collapse
-
#initialize ⇒ LineTo
constructor
Creates the operator.
-
#invoke(_processor, _x, _y) ⇒ Object
:nodoc:.
-
#serialize(serializer, x, y) ⇒ Object
:nodoc:.
Constructor Details
#initialize ⇒ LineTo
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 |