Class: Html2Bbcode::Html::Color

Inherits:
Struct
  • Object
show all
Defined in:
lib/html/color.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#colorObject

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



3
4
5
# File 'lib/html/color.rb', line 3

def color
  @color
end

Instance Method Details

#getObject



4
5
6
# File 'lib/html/color.rb', line 4

def get
  is_color_rgb? ? "##{get_hex_color}" : color
end