⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.127
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 :
%5b%5d%3d-i.ri
U:RDoc::AnyMethod[iI"[]=:ETI"CSV::Row#[]=;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"@Assigns the field value for the given +index+ or +header+; ;TI"returns +value+.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Rule:weighti@o; ; [I"*Assign field value by \Integer index:;To:RDoc::Markup::Verbatim; [I"2source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" ;TI".table = CSV.parse(source, headers: true) ;TI"row = table[0] ;TI"row[0] = 'Bat' ;TI"row[1] = 3 ;TI"1row # => #
;T:@format0o; ; [I"ACounts backward from the last column if +index+ is negative:;To;; [I"row[-1] = 4 ;TI"row[-2] = 'Bam' ;TI"1row # => #
;T;0o; ; [I"QExtends the row with
nil:nil
if positive +index+ is not in the row:;To;; [I"row[4] = 5 ;TI"Grow # => #
;T;0o; ; [I"LRaises IndexError if negative +index+ is too small (too far from zero).;T@S;; i@o; ; [I"0Assign field value by header (first found):;To;; [ I".source = "Name,Name,Name\nFoo,Bar,Baz\n" ;TI".table = CSV.parse(source, headers: true) ;TI"row = table[0] ;TI"row['Name'] = 'Bat' ;TI"Arow # => #
;T;0o; ; [I"DAssign field value by header, ignoring +offset+ leading fields:;To;; [ I".source = "Name,Name,Name\nFoo,Bar,Baz\n" ;TI".table = CSV.parse(source, headers: true) ;TI"row = table[0] ;TI"row['Name', 2] = 4 ;TI"=row # => #
;T;0o; ; [I"&Append new field by (new) header:;To;; [ I"2source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" ;TI".table = CSV.parse(source, headers: true) ;TI"row = table[0] ;TI"row['New'] = 6 ;TI"9row# => #
;T;0: @fileI"lib/csv/row.rb;T:0@omit_headings_from_table_of_contents_below0I"crow[index] = value -> value row[header, offset] = value -> value row[header] = value -> value ;T0[ I"(*args);T@MFI"Row;TcRDoc::NormalClass00