⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
OpenStruct
/
Edit File: dig-i.ri
U:RDoc::AnyMethod[iI"dig:ETI"OpenStruct#dig;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"CExtracts the nested value specified by the sequence of +name+ ;TI"Cobjects by calling +dig+ at each step, returning +nil+ if any ;TI" intermediate step is +nil+.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"require "ostruct" ;TI"Faddress = OpenStruct.new("city" => "Anytown NC", "zip" => 12345) ;TI"Lperson = OpenStruct.new("name" => "John Smith", "address" => address) ;TI" ;TI"7person.dig(:address, "zip") # => 12345 ;TI"5person.dig(:business_address, "zip") # => nil ;TI" ;TI"2data = OpenStruct.new(:array => [1, [2, 3]]) ;TI" ;TI"%data.dig(:array, 1, 0) # => 2 ;TI"Ldata.dig(:array, 0, 0) # TypeError: Integer does not have #dig method;T:@format0: @fileI"lib/ostruct.rb;T:0@omit_headings_from_table_of_contents_below0I"'ostruct.dig(name, ...) -> object ;T0[ I"(name, *names);T@FI"OpenStruct;TcRDoc::NormalClass00
Simpan