D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
IO
/
Filename :
each_byte-i.ri
back
Copy
U:RDoc::AnyMethod[iI"each_byte:ETI"IO#each_byte;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"RCalls the given block with each byte (0..255) in the stream; returns +self+. ;TI"(See {Byte IO}[rdoc-ref:IO@Byte+IO].;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"f = File.new('t.rus') ;TI"a = [] ;TI"f.each_byte {|b| a << b } ;TI"5a # => [209, 130, 208, 181, 209, 129, 209, 130] ;TI" f.close ;T:@format0o; ; [I"0Returns an Enumerator if no block is given.;T@o; ; [I".Related: IO#each_char, IO#each_codepoint.;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"Keach_byte {|byte| ... } -> self each_byte -> enumerator ;T0[ I"();T@FI"IO;TcRDoc::NormalClass00