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: PDF2.0 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.
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 |