Class: POECSS::RGBColorSpec
- Inherits:
-
Struct
- Object
- Struct
- POECSS::RGBColorSpec
- Defined in:
- lib/poe-css.rb,
lib/poe-css.rb
Instance Attribute Summary collapse
-
#a ⇒ Object
Returns the value of attribute a.
-
#b ⇒ Object
Returns the value of attribute b.
-
#g ⇒ Object
Returns the value of attribute g.
-
#r ⇒ Object
Returns the value of attribute r.
Instance Method Summary collapse
Instance Attribute Details
#a ⇒ Object
Returns the value of attribute a
7 8 9 |
# File 'lib/poe-css.rb', line 7 def a @a end |
#b ⇒ Object
Returns the value of attribute b
7 8 9 |
# File 'lib/poe-css.rb', line 7 def b @b end |
#g ⇒ Object
Returns the value of attribute g
7 8 9 |
# File 'lib/poe-css.rb', line 7 def g @g end |
#r ⇒ Object
Returns the value of attribute r
7 8 9 |
# File 'lib/poe-css.rb', line 7 def r @r end |
Instance Method Details
#inspect ⇒ Object
61 62 63 |
# File 'lib/poe-css.rb', line 61 def inspect "RGBA(#{[ r, g, b, a ].map(&:inspect).join(', ')})" end |