Class: Pdfrb::Content::ColorSpace::DeviceN

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(names:, alternate_space:, tint_transform:) ⇒ DeviceN

Returns a new instance of DeviceN.



130
131
132
133
134
# File 'lib/pdfrb/content/color_space.rb', line 130

def initialize(names:, alternate_space:, tint_transform:)
  @names = names
  @alternate_space = alternate_space
  @tint_transform = tint_transform
end

Instance Attribute Details

#alternate_spaceObject (readonly)

Returns the value of attribute alternate_space.



128
129
130
# File 'lib/pdfrb/content/color_space.rb', line 128

def alternate_space
  @alternate_space
end

#namesObject (readonly)

Returns the value of attribute names.



128
129
130
# File 'lib/pdfrb/content/color_space.rb', line 128

def names
  @names
end

#tint_transformObject (readonly)

Returns the value of attribute tint_transform.



128
129
130
# File 'lib/pdfrb/content/color_space.rb', line 128

def tint_transform
  @tint_transform
end

Instance Method Details

#componentsObject



138
139
140
# File 'lib/pdfrb/content/color_space.rb', line 138

def components
  (@names || []).length
end

#familyObject



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

def family; :DeviceN; end