관리-도구
편집 파일: lineno%3d-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Manually sets the current line number to the given value. <tt>$.</tt> is updated only on the next read. - !ruby/struct:SM::Flow::VERB body: " f = File.new("testfile")\n f.gets #=> "This is line one\\n"\n $. #=> 1\n f.lineno = 1000\n f.lineno #=> 1000\n $. # lineno of last read #=> 1\n f.gets #=> "This is line two\\n"\n $. # lineno of last read #=> 1001\n" full_name: IO#lineno= is_singleton: false name: lineno= params: | ios.lineno = integer => integer visibility: public