るりまサーチ

最速Rubyリファレンスマニュアル検索!
304件ヒット [301-304件を表示] (0.172秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:r[x] > クエリ:ruby[x] > クエリ:string[x] > クエリ:@[x] > クラス:StringIO[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

ライブラリ

キーワード

検索結果

<< < ... 2 3 4 >>

StringIO#each_byte {|ch| ... } -> self (6020.0)

自身から 1 バイトずつ読み込み、整数 ch に変換し、それを引数として与えられたブロックを実行します。

...変換し、それを引数として与えられたブロックを実行します。

@
raise IOError 自身が読み取り不可なら発生します。

//emlist[例][ruby]{
r
equire "stringio"
a = StringIO.new("hoge")
a.each_byte{|ch| p ch }
#=> 104
# 111
# 103
# 101
//}

@
see IO#each_byte...
<< < ... 2 3 4 >>