Class: RandPalette::RGBA
- Inherits:
-
Object
- Object
- RandPalette::RGBA
- Defined in:
- lib/rand_palette.rb
Instance Method Summary collapse
-
#initialize(rgba) ⇒ RGBA
constructor
A new instance of RGBA.
- #to_s ⇒ Object
Constructor Details
#initialize(rgba) ⇒ RGBA
Returns a new instance of RGBA.
36 37 38 |
# File 'lib/rand_palette.rb', line 36 def initialize rgba @rgba = rgba end |
Instance Method Details
#to_s ⇒ Object
40 41 42 |
# File 'lib/rand_palette.rb', line 40 def to_s "rgba(#{@rgba.join(',')})" end |