module Prawn::Graphics::JoinStyle
Implements stroke join styling.
Constants
- JOIN_STYLES
-
@private
Public Instance Methods
Source
# File lib/prawn/graphics/join_style.rb, line 29 def join_style(style = nil) return current_join_style || :miter if style.nil? self.current_join_style = style unless JOIN_STYLES.key?(current_join_style) raise Prawn::Errors::InvalidJoinStyle, "#{style} is not a recognized join style. Valid styles are " + JOIN_STYLES.keys.join(', ') end write_stroke_join_style end
Get or set the join style for stroked lines and curves.
@overload join_style
Get current join style. @return [:miter, :round, :bevel]
@overload join_style(style)
Set join style. @note If this method is never called, `:miter` will be used for join style throughout the document. @param style [:miter, :round, :bevel] @return [void]
Also aliased as: join_style=