Class: Pdfrb::Content::ColorSpace::Separation

Inherits:
Object
  • Object
show all
Defined in:
lib/pdfrb/content/color_space.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_spaceObject (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

#nameObject (readonly)

Returns the value of attribute name.



114
115
116
# File 'lib/pdfrb/content/color_space.rb', line 114

def name
  @name
end

#tint_transformObject (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

#componentsObject



123
# File 'lib/pdfrb/content/color_space.rb', line 123

def components; 1; end

#familyObject



122
# File 'lib/pdfrb/content/color_space.rb', line 122

def family; :Separation; end