Class: PDF::Inspector::Graphics::Dash
- Inherits:
-
PDF::Inspector
- Object
- PDF::Inspector
- PDF::Inspector::Graphics::Dash
- Defined in:
- lib/pdf/inspector/graphics.rb
Instance Attribute Summary collapse
-
#stroke_dash ⇒ Object
readonly
Returns the value of attribute stroke_dash.
-
#stroke_dash_count ⇒ Object
readonly
Returns the value of attribute stroke_dash_count.
Instance Method Summary collapse
-
#initialize ⇒ Dash
constructor
A new instance of Dash.
- #set_line_dash(*params) ⇒ Object
Methods inherited from PDF::Inspector
Constructor Details
#initialize ⇒ Dash
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_dash ⇒ Object (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_count ⇒ Object (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 |