Skip to content

Instantly share code, notes, and snippets.

Created February 16, 2014 22:42
Show Gist options
  • Save anonymous/9041719 to your computer and use it in GitHub Desktop.
Save anonymous/9041719 to your computer and use it in GitHub Desktop.
heres what i have ...
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