/ Published in: Ruby
Expand |
Embed | Plain Text
text_with_lines.each do |line| p line.chomp end
Comments
Subscribe to comments
You need to login to post a comment.
tonic on 06/20/08
1 person have marked this snippet as a favorite
text_with_lines.each do |line| p line.chomp end
Subscribe to comments
You need to login to post a comment.
how about this:
codewithlines.each_line do |line| puts line end