Class: Pdfrb::Color::Separation
- Inherits:
-
ColorSpace
- Object
- ColorSpace
- Pdfrb::Color::Separation
- Defined in:
- lib/pdfrb/color/color_space.rb
Overview
Separation color space — a single named ink (e.g. "PANTONE 185 C").
Instance Attribute Summary collapse
-
#alternate ⇒ Object
readonly
Returns the value of attribute alternate.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#tint_transform ⇒ Object
readonly
Returns the value of attribute tint_transform.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, alternate:, tint_transform:) ⇒ Separation
constructor
A new instance of Separation.
- #to_pdf ⇒ Object
Methods inherited from ColorSpace
[], names, register, register_as, registry
Constructor Details
#initialize(name:, alternate:, tint_transform:) ⇒ Separation
Returns a new instance of Separation.
198 199 200 201 202 |
# File 'lib/pdfrb/color/color_space.rb', line 198 def initialize(name:, alternate:, tint_transform:) @name = name @alternate = alternate @tint_transform = tint_transform end |
Instance Attribute Details
#alternate ⇒ Object (readonly)
Returns the value of attribute alternate.
196 197 198 |
# File 'lib/pdfrb/color/color_space.rb', line 196 def alternate @alternate end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
196 197 198 |
# File 'lib/pdfrb/color/color_space.rb', line 196 def name @name end |
#tint_transform ⇒ Object (readonly)
Returns the value of attribute tint_transform.
196 197 198 |
# File 'lib/pdfrb/color/color_space.rb', line 196 def tint_transform @tint_transform end |
Class Method Details
.pdf_name ⇒ Object
205 |
# File 'lib/pdfrb/color/color_space.rb', line 205 def pdf_name; :Separation; end |