Class: Pdfrb::Content::ColorSpace::ICCBased
- Inherits:
-
Object
- Object
- Pdfrb::Content::ColorSpace::ICCBased
- Defined in:
- lib/pdfrb/content/color_space.rb
Instance Attribute Summary collapse
-
#alternate ⇒ Object
readonly
Returns the value of attribute alternate.
-
#n ⇒ Object
readonly
Returns the value of attribute n.
-
#range ⇒ Object
readonly
Returns the value of attribute range.
-
#stream_ref ⇒ Object
readonly
Returns the value of attribute stream_ref.
Instance Method Summary collapse
- #components ⇒ Object
- #family ⇒ Object
-
#initialize(stream_ref:, n:, alternate: nil, range: nil) ⇒ ICCBased
constructor
A new instance of ICCBased.
Constructor Details
#initialize(stream_ref:, n:, alternate: nil, range: nil) ⇒ ICCBased
Returns a new instance of ICCBased.
87 88 89 90 91 92 |
# File 'lib/pdfrb/content/color_space.rb', line 87 def initialize(stream_ref:, n:, alternate: nil, range: nil) @stream_ref = stream_ref @n = n @alternate = alternate @range = range end |
Instance Attribute Details
#alternate ⇒ Object (readonly)
Returns the value of attribute alternate.
85 86 87 |
# File 'lib/pdfrb/content/color_space.rb', line 85 def alternate @alternate end |
#n ⇒ Object (readonly)
Returns the value of attribute n.
85 86 87 |
# File 'lib/pdfrb/content/color_space.rb', line 85 def n @n end |
#range ⇒ Object (readonly)
Returns the value of attribute range.
85 86 87 |
# File 'lib/pdfrb/content/color_space.rb', line 85 def range @range end |
#stream_ref ⇒ Object (readonly)
Returns the value of attribute stream_ref.
85 86 87 |
# File 'lib/pdfrb/content/color_space.rb', line 85 def stream_ref @stream_ref end |
Instance Method Details
#components ⇒ Object
95 |
# File 'lib/pdfrb/content/color_space.rb', line 95 def components; @n; end |
#family ⇒ Object
94 |
# File 'lib/pdfrb/content/color_space.rb', line 94 def family; :ICCBased; end |