Module: Sass::Script::Functions::Colors

Extended by:
Colors
Included in:
Colors
Defined in:
lib/compass-colors/sass_extensions.rb

Instance Method Summary collapse

Instance Method Details

#rgb_value(color) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/compass-colors/sass_extensions.rb', line 6

def rgb_value(color)
  if color.respond_to?(:rgb)
    color.rgb
  else
    color.value
  end
end