Class: PDF::Inspector::Graphics::CapStyle

Inherits:
PDF::Inspector show all
Defined in:
lib/pdf/inspector/graphics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from PDF::Inspector

analyze, analyze_file, parse

Constructor Details

#initializeCapStyle

Returns a new instance of CapStyle.



101
102
103
# File 'lib/pdf/inspector/graphics.rb', line 101

def initialize
  @cap_style_count = 0
end

Instance Attribute Details

#cap_styleObject (readonly)

Returns the value of attribute cap_style.



99
100
101
# File 'lib/pdf/inspector/graphics.rb', line 99

def cap_style
  @cap_style
end

#cap_style_countObject (readonly)

Returns the value of attribute cap_style_count.



99
100
101
# File 'lib/pdf/inspector/graphics.rb', line 99

def cap_style_count
  @cap_style_count
end

Instance Method Details

#set_line_cap_style(*params) ⇒ Object



105
106
107
108
# File 'lib/pdf/inspector/graphics.rb', line 105

def set_line_cap_style(*params)
  @cap_style_count += 1
  @cap_style = params[0]
end