Class: Textbringer::Color::RGBColor

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

Instance Attribute Summary collapse

Instance Attribute Details

#bObject

Returns the value of attribute b

Returns:

  • (Object)

    the current value of b



25
26
27
# File 'lib/textbringer/color.rb', line 25

def b
  @b
end

#gObject

Returns the value of attribute g

Returns:

  • (Object)

    the current value of g



25
26
27
# File 'lib/textbringer/color.rb', line 25

def g
  @g
end

#numberObject

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



25
26
27
# File 'lib/textbringer/color.rb', line 25

def number
  @number
end

#rObject

Returns the value of attribute r

Returns:

  • (Object)

    the current value of r



25
26
27
# File 'lib/textbringer/color.rb', line 25

def r
  @r
end