Class: HexaPDF::Content::Operator::SetLineCapStyle

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

Overview

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

See: PDF2.0 s8.4.4

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Methods inherited from SingleNumericArgumentOperator

#serialize

Methods inherited from BaseOperator

#serialize

Constructor Details

#initializeSetLineCapStyle

Creates the operator.



223
224
225
# File 'lib/hexapdf/content/operator.rb', line 223

def initialize
  super('J')
end

Instance Method Details

#invoke(processor, cap_style) ⇒ Object

:nodoc:



227
228
229
# File 'lib/hexapdf/content/operator.rb', line 227

def invoke(processor, cap_style) #:nodoc:
  processor.graphics_state.line_cap_style = LineCapStyle.normalize(cap_style)
end