⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.13
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
/
Edit File: shift-i.ri
U:RDoc::AnyMethod[iI" shift:ETI"CSV#shift;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"%Returns the next row of data as:;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"&An \Array if no headers are used.;To;;0; [o; ; [I"+A CSV::Row object if headers are used.;To:RDoc::Markup::BlankLine o; ; [I"0The data source must be opened for reading.;T@o; ; [I"Without headers:;To:RDoc::Markup::Verbatim; [I"&string = "foo,0\nbar,1\nbaz,2\n" ;TI"csv = CSV.new(string) ;TI"!csv.shift # => ["foo", "0"] ;TI"!csv.shift # => ["bar", "1"] ;TI"!csv.shift # => ["baz", "2"] ;TI"csv.shift # => nil ;T:@format0o; ; [I"With headers:;To;; [I"2string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" ;TI"*csv = CSV.new(string, headers: true) ;TI"9csv.shift # => #<CSV::Row "Name":"foo" "Value":"0"> ;TI"9csv.shift # => #<CSV::Row "Name":"bar" "Value":"1"> ;TI"9csv.shift # => #<CSV::Row "Name":"baz" "Value":"2"> ;TI"csv.shift # => nil ;T;0S:RDoc::Markup::Rule:weighti@o; ; [I"ARaises an exception if the source is not opened for reading:;To;; [ I"&string = "foo,0\nbar,1\nbaz,2\n" ;TI"csv = CSV.new(string) ;TI"csv.close ;TI"/# Raises IOError (not opened for reading) ;TI"csv.shift;T;0: @fileI"lib/csv.rb;T:0@omit_headings_from_table_of_contents_below0I")csv.shift -> array, csv_row, or nil ;T0[[I" gets;To;; [ ;@?;0[I" readline;To;; [ ;@?;0I"();T@?FI"CSV;TcRDoc::NormalClass00
Simpan