Class: HexaPDF::Content::Operator::SetMiterLimit

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

Overview

Implementation of the ‘M’ 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

#initializeSetMiterLimit

Creates the operator.



255
256
257
# File 'lib/hexapdf/content/operator.rb', line 255

def initialize
  super('M')
end

Instance Method Details

#invoke(processor, miter_limit) ⇒ Object

:nodoc:



259
260
261
# File 'lib/hexapdf/content/operator.rb', line 259

def invoke(processor, miter_limit) #:nodoc:
  processor.graphics_state.miter_limit = miter_limit
end