Advertisement
Guest User

Untitled

a guest
Mar 30th, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Notifier
  2.   def done(msg);  puts "[+] #{msg}"; end
  3.   def note(msg);  puts "[!] #{msg}"; end
  4.   def error(msg); puts "[-] #{msg}"; end
  5. end
  6.  
  7. # then you do like this all over the place
  8. Notifier.done "This thing was completed now."
  9. Notifier.error "ZOMG!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement