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