Method: App::Terminal.success
- Defined in:
- lib/core/terminal.rb
.success(title = nil, message = nil, preceding_blank_line = true) ⇒ Object
Displays success message.
152 153 154 155 156 157 158 159 160 161 |
# File 'lib/core/terminal.rb', line 152 def self.success(title = nil, = nil, preceding_blank_line = true) if title.nil? title = 'Whatever you did, worked.' end if preceding_blank_line puts end puts " \x1B[48;5;12m Success \x1B[0m \xe2\x86\x92 #{title}" () end |