Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Notifier
- def done(msg); puts "[+] #{msg}"; end
- def note(msg); puts "[!] #{msg}"; end
- def error(msg); puts "[-] #{msg}"; end
- end
- # then you do like this all over the place
- Notifier.done "This thing was completed now."
- Notifier.error "ZOMG!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement