Class: PDF::Inspector::Graphics::Pattern

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

#initializePattern

Returns a new instance of Pattern.



154
155
156
157
# File 'lib/pdf/inspector/graphics.rb', line 154

def initialize
  super
  @patterns = {}
end

Instance Attribute Details

#patternsObject (readonly)

Returns the value of attribute patterns.



152
153
154
# File 'lib/pdf/inspector/graphics.rb', line 152

def patterns
  @patterns
end

Instance Method Details

#page=(page) ⇒ Object



159
160
161
162
163
# File 'lib/pdf/inspector/graphics.rb', line 159

def page=(page)
  page.patterns.each do |label, stream|
    @patterns[label] = stream
  end
end