Method: String#bgcolour

Defined in:
lib/drydock/mixins/string.rb

#bgcolour(bgcol = :default) ⇒ Object Also known as: bgcolor

See colour



24
25
26
27
28
29
# File 'lib/drydock/mixins/string.rb', line 24

def bgcolour(bgcol = :default)
  return self unless @@print_with_attributes
  Console.style(nil, bgcol, nil) +
  self +
  Console.style(nil, :default, nil)
end