12件ヒット
[1-12件を表示]
(0.033秒)
ライブラリ
- ビルトイン (12)
検索結果
-
ARGF
. class # each _ codepoint -> Enumerator (18228.0) -
self の各コードポイントに対して繰り返しブロックを呼びだします。
...した場合には、Enumerator を返します。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARGF.each_codepoint{|e|print e, ","} # => 10...