Module: JWTear::Helpers::Extensions::Print
Overview
Add print styles
Instance Method Summary collapse
- #print_bad(msg) ⇒ Object
- #print_error(msg) ⇒ Object
- #print_good(msg) ⇒ Object
- #print_h1(msg) ⇒ Object
- #print_h2(msg) ⇒ Object
- #print_h3(*msg) ⇒ Object
- #print_status(msg) ⇒ Object
- #print_warning(msg) ⇒ Object
Instance Method Details
#print_bad(msg) ⇒ Object
9 |
# File 'lib/jwtear/helpers/extensions.rb', line 9 def print_bad(msg); puts "[!] ".red + "#{msg}"; end |
#print_error(msg) ⇒ Object
8 |
# File 'lib/jwtear/helpers/extensions.rb', line 8 def print_error(msg); puts "[x] ".red + "#{msg}"; end |
#print_good(msg) ⇒ Object
7 |
# File 'lib/jwtear/helpers/extensions.rb', line 7 def print_good(msg); puts "[+] ".green + "#{msg}"; end |
#print_h1(msg) ⇒ Object
11 |
# File 'lib/jwtear/helpers/extensions.rb', line 11 def print_h1(msg); puts "-[" + "#{msg}".green.bold + "]----"; end |
#print_h2(msg) ⇒ Object
12 |
# File 'lib/jwtear/helpers/extensions.rb', line 12 def print_h2(msg); puts "[+] ".green + "#{msg}:" ; end |
#print_h3(*msg) ⇒ Object
13 |
# File 'lib/jwtear/helpers/extensions.rb', line 13 def print_h3(*msg); print " - ".cyan.bold + "#{msg[0]}:" " #{msg[1..-1].join(' ')}\n" ; end |
#print_status(msg) ⇒ Object
6 |
# File 'lib/jwtear/helpers/extensions.rb', line 6 def print_status(msg); puts "[*] ".blue + "#{msg}"; end |
#print_warning(msg) ⇒ Object
10 |
# File 'lib/jwtear/helpers/extensions.rb', line 10 def print_warning(msg); puts "[!] ".yellow + "#{msg}"; end |