るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.078秒)
トップページ > クエリ:-[x] > クエリ:echo[x] > クエリ:each_codepoint[x]

別のキーワード

  1. socket iff_echo
  2. io/console echo=
  3. io/console echo?
  4. io echo?
  5. io echo=

ライブラリ

クラス

検索結果

ARGF.class#each_codepoint -> Enumerator (18232.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, ","} # => 108,105,110,101,49,1...

ARGF.class#each_codepoint { |c| ... } -> self (18232.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, ","} # => 108,105,110,101,49,1...