each_byte {|byte| ... } -> self[permalink][rdoc]bytes {|byte| ... } -> selfeach_byte -> Enumerable::Enumeratorbytes -> Enumerable::Enumerator-
文字列の各バイトに対して繰り返します。
例:
"str".each_byte do |byte| p byte end # => 115 # => 116 # => 114
このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
each_byte {|byte| ... } -> self[permalink][rdoc]bytes {|byte| ... } -> selfeach_byte -> Enumerable::Enumeratorbytes -> Enumerable::Enumerator文字列の各バイトに対して繰り返します。
例:
"str".each_byte do |byte|
p byte
end
# => 115
# => 116
# => 114