Created
March 20, 2013 05:57
-
-
Save denispeplin/5202622 to your computer and use it in GitHub Desktop.
debug one-liner from http://programmingzen.com/2011/06/02/10-ruby-one-liners-to-impress-your-friends/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ruby-debug' | |
words = ["akka", "play framework", "sbt", "typesafe"] | |
tweet = "This is an example tweet talking about scala and sbt." | |
words.any? do |word| | |
debugger | |
tweet.include?(word) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment