Class: RandPalette::RGBA

Inherits:
Object
  • Object
show all
Defined in:
lib/rand_palette.rb

Instance Method Summary collapse

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_sObject



40
41
42
# File 'lib/rand_palette.rb', line 40

def to_s
  "rgba(#{@rgba.join(',')})"
end