Class: Pdfrb::Content::ColorSpace::DeviceN
- Inherits:
-
Object
- Object
- Pdfrb::Content::ColorSpace::DeviceN
- Defined in:
- lib/pdfrb/content/color_space.rb
Instance Attribute Summary collapse
-
#alternate_space ⇒ Object
readonly
Returns the value of attribute alternate_space.
-
#names ⇒ Object
readonly
Returns the value of attribute names.
-
#tint_transform ⇒ Object
readonly
Returns the value of attribute tint_transform.
Instance Method Summary collapse
- #components ⇒ Object
- #family ⇒ Object
-
#initialize(names:, alternate_space:, tint_transform:) ⇒ DeviceN
constructor
A new instance of DeviceN.
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_space ⇒ Object (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 |
#names ⇒ Object (readonly)
Returns the value of attribute names.
128 129 130 |
# File 'lib/pdfrb/content/color_space.rb', line 128 def names @names end |
#tint_transform ⇒ Object (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
#components ⇒ Object
138 139 140 |
# File 'lib/pdfrb/content/color_space.rb', line 138 def components (@names || []).length end |
#family ⇒ Object
136 |
# File 'lib/pdfrb/content/color_space.rb', line 136 def family; :DeviceN; end |