mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
bc735bbe22
- unified makefile project for the whole repos - new separate project for tests
10 lines
205 B
Ruby
10 lines
205 B
Ruby
|
|
class Reportinator
|
|
|
|
def generate_banner(message, width=nil)
|
|
dash_count = ((width.nil?) ? message.strip.length : width)
|
|
return "#{'-' * dash_count}\n#{message}\n#{'-' * dash_count}\n"
|
|
end
|
|
|
|
end
|