HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/share/ri/2.7.0/system/SDBM/cdesc-SDBM.ri
U:RDoc::NormalClass[iI"	SDBM:ET@I"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"MSDBM provides a simple file-based key-value store, which can only store ;TI"String keys and values.;To:RDoc::Markup::BlankLineo;	;[I"PNote that Ruby comes with the source code for SDBM, while the DBM and GDBM ;TI"?standard libraries rely on external libraries and headers.;T@S:RDoc::Markup::Heading:
leveli:	textI"
Examples;T@o;	;[I"Insert values:;T@o:RDoc::Markup::Verbatim;[
I"require 'sdbm'
;TI"
;TI"%SDBM.open 'my_database' do |db|
;TI"  db['apple'] = 'fruit'
;TI"  db['pear'] = 'fruit'
;TI""  db['carrot'] = 'vegetable'
;TI""  db['tomato'] = 'vegetable'
;TI"	end
;T:@format0o;	;[I"Bulk update:;T@o;;[
I"require 'sdbm'
;TI"
;TI"%SDBM.open 'my_database' do |db|
;TI":  db.update('peach' => 'fruit', 'tomato' => 'fruit')
;TI"	end
;T;0o;	;[I"Retrieve values:;T@o;;[I"require 'sdbm'
;TI"
;TI"%SDBM.open 'my_database' do |db|
;TI"  db.each do |key, value|
;TI"-    puts "Key: #{key}, Value: #{value}"
;TI"  end
;TI"	end
;T;0o;	;[I"
Outputs:;T@o;;[
I"Key: apple, Value: fruit
;TI"Key: pear, Value: fruit
;TI"#Key: carrot, Value: vegetable
;TI"Key: peach, Value: fruit
;TI"Key: tomato, Value: fruit;T;0:
@fileI"ext/sdbm/init.c;T:0@omit_headings_from_table_of_contents_below0;0;0[[[[I"Enumerable;To;;[;I"ext/sdbm/init.c;T;0I""../ruby-2.7.7/ext/sdbm/init.c;T[[I"
class;T[[:public[[I"new;T@N[I"	open;T@N[:protected[[:private[[I"
instance;T[[;[([I"[];T@N[I"[]=;T@N[I"
clear;T@N[I"
close;T@N[I"closed?;T@N[I"delete;T@N[I"delete_if;T@N[I"	each;T@N[I"
each_key;T@N[I"each_pair;T@N[I"each_value;T@N[I"empty?;T@N[I"
fetch;T@N[I"
has_key?;T@N[I"has_value?;T@N[I"
include?;T@N[I"invert;T@N[I"key;T@N[I"	key?;T@N[I"	keys;T@N[I"length;T@N[I"member?;T@N[I"reject;T@N[I"reject!;T@N[I"replace;T@N[I"select;T@N[I"
shift;T@N[I"	size;T@N[I"
store;T@N[I"	to_a;T@N[I"to_hash;T@N[I"update;T@N[I"value?;T@N[I"values;T@N[I"values_at;T@N[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@M@EcRDoc::TopLevel