Class: Pdfrb::Content::ColorSpace::Separation
- Inherits:
-
Object
- Object
- Pdfrb::Content::ColorSpace::Separation
- Defined in:
- lib/pdfrb/content/color_space.rb
Instance Attribute Summary collapse
-
#alternate_space ⇒ Object
readonly
Returns the value of attribute alternate_space.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#tint_transform ⇒ Object
readonly
Returns the value of attribute tint_transform.
Instance Method Summary collapse
- #components ⇒ Object
- #family ⇒ Object
-
#initialize(name:, alternate_space:, tint_transform:) ⇒ Separation
constructor
A new instance of Separation.
Constructor Details
#initialize(name:, alternate_space:, tint_transform:) ⇒ Separation
Returns a new instance of Separation.
116 117 118 119 120 |
# File 'lib/pdfrb/content/color_space.rb', line 116 def initialize(name:, alternate_space:, tint_transform:) @name = name @alternate_space = alternate_space @tint_transform = tint_transform end |
Instance Attribute Details
#alternate_space ⇒ Object (readonly)
Returns the value of attribute alternate_space.
114 115 116 |
# File 'lib/pdfrb/content/color_space.rb', line 114 def alternate_space @alternate_space end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
114 115 116 |
# File 'lib/pdfrb/content/color_space.rb', line 114 def name @name end |
#tint_transform ⇒ Object (readonly)
Returns the value of attribute tint_transform.
114 115 116 |
# File 'lib/pdfrb/content/color_space.rb', line 114 def tint_transform @tint_transform end |
Instance Method Details
#components ⇒ Object
123 |
# File 'lib/pdfrb/content/color_space.rb', line 123 def components; 1; end |
#family ⇒ Object
122 |
# File 'lib/pdfrb/content/color_space.rb', line 122 def family; :Separation; end |