最速Rubyリファレンスマニュアル検索!
すべて(6)
2.1.0(1)
2.2.0(1)
2.3.0(1)
2.4.0(1)
2.5.0(1)
2.6.0(1)
6件ヒット
[1-6件を表示]
(0.283秒)
トップページ
>
:
record_separator
>
:each
別のキーワード
_builtin new
_builtin inspect
_builtin []
_builtin to_s
_builtin each
ライブラリ
shell
/
filter
(6)
クラス
Shell
::
Filter
(6)
検索結果
先頭1件
Shell
::
Filter
#
each(rs = nil) -> ()
Shell
::
Filter
#
each(rs = nil) -> ()
(18113.0)
2.1.0
2.2.0
2.3.0
2.4.0
2.5.0
2.6.0
インスタンスメソッド
フィルタの一行ずつをblockに渡します。
...
行ずつをblockに渡します。
@param rs レコードセパレーターを表す文字列を指定します。
nil ならば、Shell.
record_separator
の値が使用されます。
使用例
require 'shell'
sh = Shell.new
sh.cat("/etc/passwd").
each
{ |line|
puts line
}
...
Shell::Filter