Class: PDF::Inspector::Graphics::Pattern
- Inherits:
-
PDF::Inspector
- Object
- PDF::Inspector
- PDF::Inspector::Graphics::Pattern
- Defined in:
- lib/pdf/inspector/graphics.rb
Instance Attribute Summary collapse
-
#patterns ⇒ Object
readonly
Returns the value of attribute patterns.
Instance Method Summary collapse
-
#initialize ⇒ Pattern
constructor
A new instance of Pattern.
- #page=(page) ⇒ Object
Methods inherited from PDF::Inspector
Constructor Details
#initialize ⇒ Pattern
Returns a new instance of Pattern.
156 157 158 159 |
# File 'lib/pdf/inspector/graphics.rb', line 156 def initialize super @patterns = {} end |
Instance Attribute Details
#patterns ⇒ Object (readonly)
Returns the value of attribute patterns.
154 155 156 |
# File 'lib/pdf/inspector/graphics.rb', line 154 def patterns @patterns end |
Instance Method Details
#page=(page) ⇒ Object
161 162 163 164 165 |
# File 'lib/pdf/inspector/graphics.rb', line 161 def page=(page) page.patterns.each do |label, stream| @patterns[label] = stream end end |