PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
IO
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns the current line number in <em>ios</em>. The stream must be opened for reading. <tt>lineno</tt> counts the number of times <tt>gets</tt> is called, rather than the number of newlines encountered. The two values will differ if <tt>gets</tt> is called with a separator other than newline. See also the <tt>$.</tt> variable. - !ruby/struct:SM::Flow::VERB body: " f = File.new("testfile")\n f.lineno #=> 0\n f.gets #=> "This is line one\\n"\n f.lineno #=> 1\n f.gets #=> "This is line two\\n"\n f.lineno #=> 2\n" full_name: IO#lineno is_singleton: false name: lineno params: | ios.lineno => integer visibility: public
[-] tell-i.yaml
[edit]
[-] sysopen-c.yaml
[edit]
[-] close-i.yaml
[edit]
[-] fileno-i.yaml
[edit]
[-] ungetc-i.yaml
[edit]
[-] readlines-i.yaml
[edit]
[-] pid-i.yaml
[edit]
[-] lines-i.yaml
[edit]
[-] readline-i.yaml
[edit]
[-] stat-i.yaml
[edit]
[-] reopen-i.yaml
[edit]
[-] closed%3f-i.yaml
[edit]
[-] close_read-i.yaml
[edit]
[-] fsync-i.yaml
[edit]
[-] select-c.yaml
[edit]
[-] lineno%3d-i.yaml
[edit]
[-] write_nonblock-i.yaml
[edit]
[-] pos-i.yaml
[edit]
[-] print-i.yaml
[edit]
[-] read-i.yaml
[edit]
[-] isatty-i.yaml
[edit]
[-] readbytes-i.yaml
[edit]
[-] scanf-i.yaml
[edit]
[-] block_scanf-i.yaml
[edit]
[-] chars-i.yaml
[edit]
[-] %3c%3c-i.yaml
[edit]
[-] each_byte-i.yaml
[edit]
[-] read_nonblock-i.yaml
[edit]
[-] putc-i.yaml
[edit]
[-] fcntl-i.yaml
[edit]
[-] getc-i.yaml
[edit]
[-] ioctl-i.yaml
[edit]
[-] sync%3d-i.yaml
[edit]
[-] write-i.yaml
[edit]
[-] inspect-i.yaml
[edit]
[-] eof-i.yaml
[edit]
[-] readchar-i.yaml
[edit]
[-] sysseek-i.yaml
[edit]
[-] bytes-i.yaml
[edit]
[-] read-c.yaml
[edit]
[-] open-c.yaml
[edit]
[-] readpartial-i.yaml
[edit]
[-] cdesc-IO.yaml
[edit]
[-] each_line-i.yaml
[edit]
[-] soak_up_spaces-i.yaml
[edit]
[-] gets-i.yaml
[edit]
[-] tty%3f-i.yaml
[edit]
[-] getbyte-i.yaml
[edit]
[-] pos%3d-i.yaml
[edit]
[-] printf-i.yaml
[edit]
[-] foreach-c.yaml
[edit]
[-] close_write-i.yaml
[edit]
[+]
..
[-] flush-i.yaml
[edit]
[-] to_i-i.yaml
[edit]
[-] to_io-i.yaml
[edit]
[-] sync-i.yaml
[edit]
[-] each_char-i.yaml
[edit]
[-] each-i.yaml
[edit]
[-] binmode-i.yaml
[edit]
[-] readbyte-i.yaml
[edit]
[-] new-c.yaml
[edit]
[-] readlines-c.yaml
[edit]
[-] seek-i.yaml
[edit]
[-] eof%3f-i.yaml
[edit]
[-] rewind-i.yaml
[edit]
[-] for_fd-c.yaml
[edit]
[-] lineno-i.yaml
[edit]
[-] syswrite-i.yaml
[edit]
[-] sysread-i.yaml
[edit]
[-] pipe-c.yaml
[edit]
[-] puts-i.yaml
[edit]
[-] popen-c.yaml
[edit]