Class: PDF::Inspector::Graphics::State

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

#initializeState

Returns a new instance of State.



137
138
139
140
# File 'lib/pdf/inspector/graphics.rb', line 137

def initialize
  @save_graphics_state_count    = 0
  @restore_graphics_state_count = 0
end

Instance Attribute Details

#restore_graphics_state_countObject (readonly)

Returns the value of attribute restore_graphics_state_count.



135
136
137
# File 'lib/pdf/inspector/graphics.rb', line 135

def restore_graphics_state_count
  @restore_graphics_state_count
end

#save_graphics_state_countObject (readonly)

Returns the value of attribute save_graphics_state_count.



135
136
137
# File 'lib/pdf/inspector/graphics.rb', line 135

def save_graphics_state_count
  @save_graphics_state_count
end

Instance Method Details

#restore_graphics_stateObject



146
147
148
# File 'lib/pdf/inspector/graphics.rb', line 146

def restore_graphics_state(*)
  @restore_graphics_state_count += 1
end

#save_graphics_stateObject



142
143
144
# File 'lib/pdf/inspector/graphics.rb', line 142

def save_graphics_state(*)
  @save_graphics_state_count += 1
end