⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
CSV
/
Row
/
View File Name :
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
[header, value]
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