In Ruby language, how can I get the number of lines in a string?

Posted by Yousui on Stack Overflow See other posts from Stack Overflow or by Yousui
Published on 2010-04-07T04:43:19Z Indexed on 2010/04/07 5:23 UTC
Read the original article Hit count: 308

Filed under:
|
|

Hi guys,

In Ruby language, how can I get the number of lines in a string?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about string