るりまサーチ

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

別のキーワード

  1. _builtin arg
  2. etc sc_arg_max
  3. mkmf arg_config
  4. rake arg_description
  5. kernel arg_config

クラス

検索結果

ARGF.class#each_codepoint -> Enumerator (21129.0)

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

...す。

例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt

# test.rb
ARG
F.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARG
F.each_codepoint{|e|print e, ","} # => 108,105,110,101,49,10,108,105,110,101,50,10,...

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

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

...す。

例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt

# test.rb
ARG
F.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARG
F.each_codepoint{|e|print e, ","} # => 108,105,110,101,49,10,108,105,110,101,50,10,...