Created
February 16, 2014 22:42
-
-
Save anonymous/9041719 to your computer and use it in GitHub Desktop.
heres what i have ...
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
def count_lines (s) | |
s = "Hello\nWorld" | |
count_lines = 0 | |
s = s.lines.count | |
return count_lines(s) | |
end | |
print count_lines |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment