Class: Textbringer::Color::RGBColor

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

Instance Attribute Summary collapse

Instance Attribute Details

#b ⇒ Object

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

#g ⇒ Object

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

#number ⇒ Object

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

#r ⇒ Object

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