Method: Colorlib::ColoredCompound#append

Defined in:
lib/colorlib/colored_compound.rb

#append(whatever) ⇒ Object Also known as: <<



10
11
12
13
# File 'lib/colorlib/colored_compound.rb', line 10

def append(whatever)
  @strings << whatever.is_a?(ColoredString) ? whatever : ColoredString.new(whatever.to_s)
  self # to return it
end