Class: PDF::Inspector::Graphics::Dash

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

#initializeDash

Returns a new instance of Dash.



88
89
90
# File 'lib/pdf/inspector/graphics.rb', line 88

def initialize
  @stroke_dash_count = 0
end

Instance Attribute Details

#stroke_dashObject (readonly)

Returns the value of attribute stroke_dash.



86
87
88
# File 'lib/pdf/inspector/graphics.rb', line 86

def stroke_dash
  @stroke_dash
end

#stroke_dash_countObject (readonly)

Returns the value of attribute stroke_dash_count.



86
87
88
# File 'lib/pdf/inspector/graphics.rb', line 86

def stroke_dash_count
  @stroke_dash_count
end

Instance Method Details

#set_line_dash(*params) ⇒ Object



92
93
94
95
# File 'lib/pdf/inspector/graphics.rb', line 92

def set_line_dash(*params)
  @stroke_dash_count += 1
  @stroke_dash = params
end