Method: HighLine::Style#code

Defined in:
lib/highline/style.rb

#codeString

Returns:

  • (String)

    all codes of the Style list joined together (if a Style list)

  • (String)

    the Style code



242
243
244
245
246
247
248
# File 'lib/highline/style.rb', line 242

def code
  if @list
    @list.map { |element| HighLine.Style(element).code }.join
  else
    @code
  end
end