⚝
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 :
field-i.ri
U:RDoc::AnyMethod[iI" field:ETI"CSV::Row#field;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"?Returns the field value for the given +index+ or +header+.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Rule:weighti@o; ; [I")Fetch 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.field(0) # => "foo" ;TI"row.field(1) # => "bar" ;T:@format0o; ; [I"ACounts backward from the last column if +index+ is negative:;To;; [I"row.field(-1) # => "0" ;TI"row.field(-2) # => "foo" ;T;0o; ; [I".Returns +nil+ if +index+ is out of range:;To;; [I"row.field(2) # => nil ;TI"row.field(-3) # => nil ;T;0S;; i@o; ; [I"/Fetch 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.field('Name') # => "Foo" ;T;0o; ; [I"CFetch 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.field('Name', 2) # => "Baz" ;T;0o; ; [I"0Returns +nil+ if the header does not exist.;T: @fileI"lib/csv/row.rb;T:0@omit_headings_from_table_of_contents_below0I"6field(index) field(header) field(header, offset) ;T0[[I"[];To;; [ ;@>;0I")(header_or_index, minimum_index = 0);T@>FI"Row;TcRDoc::NormalClass00