Created
December 10, 2014 04:58
-
-
Save Nameo0/54cbd8c22e418e09d9eb to your computer and use it in GitHub Desktop.
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
a = "This is a thing that is this" | |
puts a.count "is" | |
# This returns 9 and I need it to return 4 (the amount of times 'is' appears). |
havenwood
commented
Dec 10, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment