Class: POECSS::RGBColorSpec

Inherits:
Struct
  • Object
show all
Defined in:
lib/poe-css.rb,
lib/poe-css.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#aObject

Returns the value of attribute a

Returns:

  • (Object)

    the current value of a



7
8
9
# File 'lib/poe-css.rb', line 7

def a
  @a
end

#bObject

Returns the value of attribute b

Returns:

  • (Object)

    the current value of b



7
8
9
# File 'lib/poe-css.rb', line 7

def b
  @b
end

#gObject

Returns the value of attribute g

Returns:

  • (Object)

    the current value of g



7
8
9
# File 'lib/poe-css.rb', line 7

def g
  @g
end

#rObject

Returns the value of attribute r

Returns:

  • (Object)

    the current value of r



7
8
9
# File 'lib/poe-css.rb', line 7

def r
  @r
end

Instance Method Details

#inspectObject



61
62
63
# File 'lib/poe-css.rb', line 61

def inspect
  "RGBA(#{[ r, g, b, a ].map(&:inspect).join(', ')})"
end