Class: ASEPalette::Color::CMYK
- Inherits:
-
ASEPalette::Color
- Object
- ASEPalette::Color
- ASEPalette::Color::CMYK
- Defined in:
- lib/ase-palette/color.rb
Instance Attribute Summary collapse
-
#c ⇒ Object
Returns the value of attribute c.
-
#k ⇒ Object
Returns the value of attribute k.
-
#m ⇒ Object
Returns the value of attribute m.
-
#y ⇒ Object
Returns the value of attribute y.
Attributes inherited from ASEPalette::Color
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(name, c, m, y, k, type = DEFAULT_COLOR_TYPE) ⇒ CMYK
constructor
A new instance of CMYK.
Methods inherited from ASEPalette::Color
Constructor Details
#initialize(name, c, m, y, k, type = DEFAULT_COLOR_TYPE) ⇒ CMYK
Returns a new instance of CMYK.
50 51 52 53 54 55 56 57 |
# File 'lib/ase-palette/color.rb', line 50 def initialize(name, c, m, y, k, type = DEFAULT_COLOR_TYPE) @name = name @c = c @m = m @y = y @k = k @type = type end |
Instance Attribute Details
#c ⇒ Object
Returns the value of attribute c.
49 50 51 |
# File 'lib/ase-palette/color.rb', line 49 def c @c end |
#k ⇒ Object
Returns the value of attribute k.
49 50 51 |
# File 'lib/ase-palette/color.rb', line 49 def k @k end |
#m ⇒ Object
Returns the value of attribute m.
49 50 51 |
# File 'lib/ase-palette/color.rb', line 49 def m @m end |
#y ⇒ Object
Returns the value of attribute y.
49 50 51 |
# File 'lib/ase-palette/color.rb', line 49 def y @y end |
Instance Method Details
#data ⇒ Object
58 59 60 |
# File 'lib/ase-palette/color.rb', line 58 def data { c: @c, m: @m, y: @y, k: @k } end |