⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.189
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
CSV
/
Table
/
View File Name :
each-i.ri
U:RDoc::AnyMethod[iI" each:ETI"CSV::Table#each;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"=Calls the block with each row or column; returns +self+.;To:RDoc::Markup::BlankLine o; ; [I"DWhen the access mode is <tt>:row</tt> or <tt>:col_or_row</tt>, ;TI"0calls the block with each \CSV::Row object:;To:RDoc::Markup::Verbatim; [ I"2source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" ;TI".table = CSV.parse(source, headers: true) ;TI";table.by_row! # => #<CSV::Table mode:row row_count:4> ;TI"table.each {|row| p row } ;T:@format0o; ; [I"Output:;To;; [I"*#<CSV::Row "Name":"foo" "Value":"0"> ;TI"*#<CSV::Row "Name":"bar" "Value":"1"> ;TI"*#<CSV::Row "Name":"baz" "Value":"2"> ;T; 0o; ; [I",When the access mode is <tt>:col</tt>, ;TI";calls the block with each column as a 2-element array ;TI":containing the header and an \Array of column fields:;To;; [I";table.by_col! # => #<CSV::Table mode:col row_count:4> ;TI"/table.each {|column_data| p column_data } ;T; 0o; ; [I"Output:;To;; [I"%["Name", ["foo", "bar", "baz"]] ;TI" ["Value", ["0", "1", "2"]] ;T; 0o; ; [I"4Returns a new \Enumerator if no block is given:;To;; [I"Ktable.each # => #<Enumerator: #<CSV::Table mode:col row_count:4>:each>;T; 0: @fileI"lib/csv/table.rb;T:0@omit_headings_from_table_of_contents_below00I"header, self;T[ I" (&block);T@7FI" Table;TcRDoc::NormalClass00