class HighLine::Style

def code

Returns:
  • (String) - the Style code
  • (String) - all codes of the Style list joined together
def code
  if @list
    @list.map { |element| HighLine.Style(element).code }.join
  else
    @code
  end
end