Class: Origami::Graphics::Color::CMYK
- Inherits:
-
Object
- Object
- Origami::Graphics::Color::CMYK
- Defined in:
- lib/origami/graphics/colors.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.
Instance Method Summary collapse
-
#initialize(c, m, y, k) ⇒ CMYK
constructor
A new instance of CMYK.
Constructor Details
#initialize(c, m, y, k) ⇒ CMYK
Returns a new instance of CMYK.
108 109 110 |
# File 'lib/origami/graphics/colors.rb', line 108 def initialize(c,m,y,k) @c,@m,@y,@k = c,m,y,k end |
Instance Attribute Details
#c ⇒ Object
Returns the value of attribute c.
106 107 108 |
# File 'lib/origami/graphics/colors.rb', line 106 def c @c end |
#k ⇒ Object
Returns the value of attribute k.
106 107 108 |
# File 'lib/origami/graphics/colors.rb', line 106 def k @k end |
#m ⇒ Object
Returns the value of attribute m.
106 107 108 |
# File 'lib/origami/graphics/colors.rb', line 106 def m @m end |
#y ⇒ Object
Returns the value of attribute y.
106 107 108 |
# File 'lib/origami/graphics/colors.rb', line 106 def y @y end |