Class: Html2Bbcode::Html::Color
- Inherits:
-
Struct
- Object
- Struct
- Html2Bbcode::Html::Color
- Defined in:
- lib/html/color.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
Instance Method Summary collapse
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color
3 4 5 |
# File 'lib/html/color.rb', line 3 def color @color end |
Instance Method Details
#get ⇒ Object
4 5 6 |
# File 'lib/html/color.rb', line 4 def get is_color_rgb? ? "##{get_hex_color}" : color end |