Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Browser.text.include?
- if @target['color'] == "red"
- "You got rubies."
- elsif @target['color'] == "green"
- "You got plants"
- else
- "You got nothing"
- end
- Browser.text.include? case @target['color']
- when "red" then "You got rubies."
- when "green" then "You got plants"
- else "You got nothing"
- end
Add Comment
Please, Sign In to add comment