module HexaPDF::Content::LineJoinStyle
def self.normalize(style)
* 2 or +:bevel+ can be used for the BEVEL_JOIN style.
* 1 or +:round+ can be used for the ROUND_JOIN style.
* 0 or +:miter+ can be used for the MITER_JOIN style.
Returns the argument normalized to a valid line join style, i.e. a NamedValue instance.
def self.normalize(style) case style when :miter, 0 then MITER_JOIN when :round, 1 then ROUND_JOIN when :bevel, 2 then BEVEL_JOIN else raise ArgumentError, "Unknown line join style: #{style}" end end