instance method StringIO#lineno

lineno -> Integer[permalink][rdoc][edit]

現在の行番号を返します。これは StringIO#gets が呼ばれた回数です。