Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #ARGV Agent
  2. obj = Object.new
  3.  
  4. def obj.some
  5. print "do some actions"
  6. end
  7.  
  8. def obj.other
  9. print "do other actions"
  10. end
  11.  
  12. if obj.respond_to? ARGV[0]
  13. obj.send ARGV[0]
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement