Guest User

Untitled

a guest
Jul 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Browser.text.include?
  2. if @target['color'] == "red"
  3. "You got rubies."
  4. elsif @target['color'] == "green"
  5. "You got plants"
  6. else
  7. "You got nothing"
  8. end
  9.  
  10. Browser.text.include? case @target['color']
  11. when "red" then "You got rubies."
  12. when "green" then "You got plants"
  13. else "You got nothing"
  14. end
Add Comment
Please, Sign In to add comment