Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
GDBM
/
//opt/alt/ruby27/share/ri/system/GDBM/open-c.ri
U:RDoc::AnyMethod[iI" open:ETI"GDBM::open;TT:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I"AIf called without a block, this is synonymous to GDBM::new. ;TI"LIf a block is given, the new GDBM instance will be passed to the block ;TI"Has a parameter, and the corresponding database file will be closed ;TI"=after the execution of the block code has been finished.;To:RDoc::Markup::BlankLine o; ; [I"+Example for an open call with a block:;T@o:RDoc::Markup::Verbatim; [I"require 'gdbm' ;TI"*GDBM.open("fruitstore.db") do |gdbm| ;TI"& gdbm.each_pair do |key, value| ;TI"$ print "#{key}: #{value}\n" ;TI" end ;TI"end;T:@format0: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"pGDBM.open(filename, mode = 0666, flags = nil) GDBM.open(filename, mode = 0666, flags = nil) { |gdbm| ... } ;T0[ I"(*args);T@FI" GDBM;TcRDoc::NormalClass00