From: "Thillai S." Date: 2010-12-31T17:16:37+09:00 Subject: Re: Parsing the Ruby File I want to find the number of lines in the function code. And to find the number of comment lines with in that function definition. I am doing code quality analysis. For that only I want to know the end line number. So that I can get the total number of lines there in that functions. If there are 40 lines of code in the function, then it should have minimum 20 lines of comments for that function. Thats why I want to know the end line number of the function -- Posted via http://www.ruby-forum.com/.