Guest User

Untitled

a guest
Jun 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. def growl( msg ); `growlnotify -s -m "#{msg}"`; end
  4.  
  5. def ten
  6. sleep 3
  7. growl "Ten..."
  8. end
  9.  
  10. def ten.+( nxt )
  11. nxt
  12. end
  13.  
  14. def two
  15. sleep 3
  16. growl "... plus two!"
  17. end
  18.  
  19. ten + two
Add Comment
Please, Sign In to add comment