るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.085秒)

別のキーワード

  1. zlib os_code
  2. gzipfile os_code
  3. rdoc/code_object comment
  4. responsetext code
  5. ftp return_code

ライブラリ

検索結果

ARGF.class#each_codepoint -> Enumerator (30328.0)

self の各コードポイントに対して繰り返しブロックを呼びだします。

...rator を返します。

例:
# $ 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, ","} # => 108,105,110,101,49,10,108,10...

ARGF.class#each_codepoint { |c| ... } -> self (30328.0)

self の各コードポイントに対して繰り返しブロックを呼びだします。

...rator を返します。

例:
# $ 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, ","} # => 108,105,110,101,49,10,108,10...