Class: PDF::Inspector::Graphics::State
- Inherits:
-
PDF::Inspector
- Object
- PDF::Inspector
- PDF::Inspector::Graphics::State
- Defined in:
- lib/pdf/inspector/graphics.rb
Instance Attribute Summary collapse
-
#restore_graphics_state_count ⇒ Object
readonly
Returns the value of attribute restore_graphics_state_count.
-
#save_graphics_state_count ⇒ Object
readonly
Returns the value of attribute save_graphics_state_count.
Instance Method Summary collapse
-
#initialize ⇒ State
constructor
A new instance of State.
- #restore_graphics_state(*values) ⇒ Object
- #save_graphics_state(*values) ⇒ Object
Methods inherited from PDF::Inspector
Constructor Details
#initialize ⇒ State
Returns a new instance of State.
139 140 141 142 |
# File 'lib/pdf/inspector/graphics.rb', line 139 def initialize @save_graphics_state_count = 0 @restore_graphics_state_count = 0 end |
Instance Attribute Details
#restore_graphics_state_count ⇒ Object (readonly)
Returns the value of attribute restore_graphics_state_count.
137 138 139 |
# File 'lib/pdf/inspector/graphics.rb', line 137 def restore_graphics_state_count @restore_graphics_state_count end |
#save_graphics_state_count ⇒ Object (readonly)
Returns the value of attribute save_graphics_state_count.
137 138 139 |
# File 'lib/pdf/inspector/graphics.rb', line 137 def save_graphics_state_count @save_graphics_state_count end |
Instance Method Details
#restore_graphics_state(*values) ⇒ Object
148 149 150 |
# File 'lib/pdf/inspector/graphics.rb', line 148 def restore_graphics_state(*values) @restore_graphics_state_count += 1 end |
#save_graphics_state(*values) ⇒ Object
144 145 146 |
# File 'lib/pdf/inspector/graphics.rb', line 144 def save_graphics_state(*values) @save_graphics_state_count += 1 end |