Prawn::Graphics::JoinStyle

Constants

JOIN_STYLES

Public Instance Methods

join_style(style=nil) click to toggle source

Sets the join style for stroked lines and curves

style is one of :miter, :round, or :bevel

NOTE: if this method is never called, :miter will be used for join style throughout the document

    # File lib/prawn/graphics/join_style.rb, line 21
21:       def join_style(style=nil)
22:         return @join_style || :miter if style.nil?
23: 
24:         @join_style = style
25: 
26:         write_stroke_join_style
27:       end
Also aliased as: join_style=
join_style=(style=nil) click to toggle source
Alias for: join_style

Private Instance Methods

write_stroke_join_style() click to toggle source
    # File lib/prawn/graphics/join_style.rb, line 33
33:       def write_stroke_join_style
34:         add_content "#{JOIN_STYLES[@join_style]} j"
35:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.