108件ヒット
[101-108件を表示]
(0.104秒)
ライブラリ
- ビルトイン (12)
- shell (24)
-
shell
/ command-processor (24) -
shell
/ filter (24) - zlib (24)
クラス
- Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (24) - String (12)
-
Zlib
:: GzipReader (24)
検索結果
-
Zlib
:: GzipReader # lineno=(num) (7.0) -
IO クラスの同名メソッドIO#lineno=と同じです。
...gz.puts 'h'
gz.puts 'o'
gz.puts 'g'
gz.puts 'e'
}
=end
Zlib::GzipReader.open('hoge.gz') { |gz|
while l = gz.gets
l.chomp!
gz.lineno = 1000 if l == "o"
printf "%s %d\n", l, gz.lineno
end
}
#=> h 1
#=> o 1001
#=> g 1002
#=> e 1003
@see IO#line...