class Toys::Utils::Terminal

def puts(str = "", *styles)

Returns:
  • (self) -

Parameters:
  • styles (Symbol, String, Array...) -- Styles to apply to the
  • str (String) -- The line to write
def puts(str = "", *styles)
  str = "#{str}\n" unless str.end_with?("\n")
  write(str, *styles)
end