File: C:/Ruby27-x64/share/ri/2.7.0/system/OpenStruct/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