1件ヒット
[1-1件を表示]
(0.219秒)
ライブラリ
-
shell
/ filter (1)
検索結果
-
Shell
:: Filter # each(rs = nil) -> () (45922.0) -
フィルタの一行ずつをblockに渡します。
フィルタの一行ずつをblockに渡します。
@param rs レコードセパレーターを表す文字列を指定します。
nil ならば、Shell.record_separatorの値が使用されます。
使用例
require 'shell'
sh = Shell.new
sh.cat("/etc/passwd").each { |line|
puts line
}