instance method IO#bytes
bytes -> Enumerator
-
自身を 1 バイトずつ整数としてイテレートするような Enumerator オブジェクトを生成して返します。
"hello".bytes.to_a #=> [104, 101, 108, 108, 111]
class IO
bytes -> Enumerator
自身を 1 バイトずつ整数としてイテレートするような Enumerator オブジェクトを生成して返します。
"hello".bytes.to_a #=> [104, 101, 108, 108, 111]