Class: Pdfrb::Content::ColorSpace::Indexed
- Inherits:
-
Object
- Object
- Pdfrb::Content::ColorSpace::Indexed
- Defined in:
- lib/pdfrb/content/color_space.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#hival ⇒ Object
readonly
Returns the value of attribute hival.
-
#lookup ⇒ Object
readonly
Returns the value of attribute lookup.
Instance Method Summary collapse
- #components ⇒ Object
- #family ⇒ Object
-
#initialize(base:, hival:, lookup:) ⇒ Indexed
constructor
A new instance of Indexed.
Constructor Details
#initialize(base:, hival:, lookup:) ⇒ Indexed
Returns a new instance of Indexed.
102 103 104 105 106 |
# File 'lib/pdfrb/content/color_space.rb', line 102 def initialize(base:, hival:, lookup:) @base = base @hival = hival @lookup = lookup end |
Instance Attribute Details
#base ⇒ Object (readonly)
Returns the value of attribute base.
100 101 102 |
# File 'lib/pdfrb/content/color_space.rb', line 100 def base @base end |
#hival ⇒ Object (readonly)
Returns the value of attribute hival.
100 101 102 |
# File 'lib/pdfrb/content/color_space.rb', line 100 def hival @hival end |
#lookup ⇒ Object (readonly)
Returns the value of attribute lookup.
100 101 102 |
# File 'lib/pdfrb/content/color_space.rb', line 100 def lookup @lookup end |
Instance Method Details
#components ⇒ Object
109 |
# File 'lib/pdfrb/content/color_space.rb', line 109 def components; 1; end |
#family ⇒ Object
108 |
# File 'lib/pdfrb/content/color_space.rb', line 108 def family; :Indexed; end |