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.



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_countObject (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_countObject (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