Class: Pdfrb::Color::Pattern
- Inherits:
-
ColorSpace
- Object
- ColorSpace
- Pdfrb::Color::Pattern
- Defined in:
- lib/pdfrb/color/color_space.rb
Overview
Pattern color space — for tiling and shading patterns.
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(base: nil) ⇒ Pattern
constructor
A new instance of Pattern.
- #to_pdf ⇒ Object
Methods inherited from ColorSpace
[], names, register, register_as, registry
Constructor Details
#initialize(base: nil) ⇒ Pattern
Returns a new instance of Pattern.
243 244 245 |
# File 'lib/pdfrb/color/color_space.rb', line 243 def initialize(base: nil) @base = base end |
Instance Attribute Details
#base ⇒ Object (readonly)
Returns the value of attribute base.
241 242 243 |
# File 'lib/pdfrb/color/color_space.rb', line 241 def base @base end |
Class Method Details
.pdf_name ⇒ Object
248 |
# File 'lib/pdfrb/color/color_space.rb', line 248 def pdf_name; :Pattern; end |