Class: Pdfrb::Content::ColorSpace::ICCBased

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#alternateObject (readonly)

Returns the value of attribute alternate.



85
86
87
# File 'lib/pdfrb/content/color_space.rb', line 85

def alternate
  @alternate
end

#nObject (readonly)

Returns the value of attribute n.



85
86
87
# File 'lib/pdfrb/content/color_space.rb', line 85

def n
  @n
end

#rangeObject (readonly)

Returns the value of attribute range.



85
86
87
# File 'lib/pdfrb/content/color_space.rb', line 85

def range
  @range
end

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

#componentsObject



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

def components; @n; end

#familyObject



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

def family; :ICCBased; end