ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- length-i.ri000064400000000530152376017340006615 0ustar00U:RDoc::AnyMethod[iI" length:ETI"GDBM#length;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I" fixnum;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00each_pair-i.ri000064400000000663152376017340007256 0ustar00U:RDoc::AnyMethod[iI"each_pair:ETI"GDBM#each_pair;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"NExecutes _block_ for each key in the database, passing the _key_ and the ;TI")correspoding _value_ as a parameter.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"2gdbm.each_pair { |key, value| block } -> gdbm;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00values_at-i.ri000064400000000575152376017340007330 0ustar00U:RDoc::AnyMethod[iI"values_at:ETI"GDBM#values_at;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"IReturns an array of the values associated with each specified _key_.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"'gdbm.values_at(key, ...) -> array ;T0[I" (*args);T@FI" GDBM;TcRDoc::NormalClass00has_key%3f-i.ri000064400000000620152376017340007255 0ustar00U:RDoc::AnyMethod[iI" has_key?:ETI"GDBM#has_key?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CReturns true if the given key _k_ exists within the database. ;TI"Returns false otherwise.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"&gdbm.has_key?(k) -> true or false;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00reorganize-i.ri000064400000000746152376017340007512 0ustar00U:RDoc::AnyMethod[iI"reorganize:ETI"GDBM#reorganize;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"MReorganizes the database file. This operation removes reserved space of ;TI"Oelements that have already been deleted. It is only useful after a lot of ;TI"deletions in the database.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"gdbm.reorganize -> gdbm ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00cachesize%3d-i.ri000064400000000551152376017340007571 0ustar00U:RDoc::AnyMethod[iI"cachesize=:ETI"GDBM#cachesize=;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I":Sets the size of the internal bucket cache to _size_.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"#gdbm.cachesize = size -> size ;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00each_value-i.ri000064400000000645152376017340007437 0ustar00U:RDoc::AnyMethod[iI"each_value:ETI"GDBM#each_value;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"NExecutes _block_ for each key in the database, passing the corresponding ;TI"_value_ as a parameter.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"/gdbm.each_value { |value| block } -> gdbm ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00replace-i.ri000064400000000635152376017340006755 0ustar00U:RDoc::AnyMethod[iI" replace:ETI"GDBM#replace;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"IReplaces the content of _gdbm_ with the key-value pairs of _other_. ;TI"+_other_ must have an each_pair method.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"!gdbm.replace(other) -> gdbm ;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00key%3f-i.ri000064400000000604152376017340006424 0ustar00U:RDoc::AnyMethod[iI" key?:ETI"GDBM#key?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CReturns true if the given key _k_ exists within the database. ;TI"Returns false otherwise.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I""gdbm.key?(k) -> true or false;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00clear-i.ri000064400000000513152376017340006423 0ustar00U:RDoc::AnyMethod[iI" clear:ETI"GDBM#clear;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"3Removes all the key-value pairs within _gdbm_.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"gdbm.clear -> gdbm ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00shift-i.ri000064400000000673152376017340006461 0ustar00U:RDoc::AnyMethod[iI" shift:ETI"GDBM#shift;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"ERemoves a key-value-pair from this database and returns it as a ;TI"Mtwo-item array [ _key_, _value_ ]. Returns nil if the database is empty.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"'gdbm.shift -> (key, value) or nil ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00to_a-i.ri000064400000000535152376017340006263 0ustar00U:RDoc::AnyMethod[iI" to_a:ETI"GDBM#to_a;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"GReturns an array of all key-value pairs contained in the database.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"gdbm.to_a -> array ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00fetch-i.ri000064400000000676152376017340006440 0ustar00U:RDoc::AnyMethod[iI" fetch:ETI"GDBM#fetch;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HRetrieves the _value_ corresponding to _key_. If there is no value ;TI"?associated with _key_, _default_ will be returned instead.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"*gdbm.fetch(key [, default]) -> value ;T0[I"(p1, p2 = v2);T@FI" GDBM;TcRDoc::NormalClass00new-c.ri000064400000003112152376017340006116 0ustar00U:RDoc::AnyMethod[iI"new:ETI"GDBM::new;TT: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"JCreates a new GDBM instance by opening a gdbm file named _filename_. ;TI"JIf the file does not exist, a new file with file mode _mode_ will be ;TI"2created. _flags_ may be one of the following:;To:RDoc::Markup::List: @type: BULLET: @items[ o:RDoc::Markup::ListItem: @label0; [o; ; [I"!*READER* - open as a reader;To;;0; [o; ; [I"!*WRITER* - open as a writer;To;;0; [o; ; [I"S*WRCREAT* - open as a writer; if the database does not exist, create a new one;To;;0; [o; ; [I"C*NEWDB* - open as a writer; overwrite any existing databases;To:RDoc::Markup::BlankLineo; ; [I"SThe values *WRITER*, *WRCREAT* and *NEWDB* may be combined with the following ;TI"values by bitwise or:;To; ; ; ;[o;;0; [o; ; [I"M*SYNC* - cause all database operations to be synchronized to the disk;To;;0; [o; ; [I".*NOLOCK* - do not lock the database file;T@&o; ; [ I"PIf no _flags_ are specified, the GDBM object will try to open the database ;TI"Ffile as a writer and will create it if it does not already exist ;TI"R(cf. flag WRCREAT). If this fails (for instance, if another process ;TI"Khas already opened the database as a reader), it will try to open the ;TI":database file as a reader (cf. flag READER).;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"2GDBM.new(filename, mode = 0666, flags = nil) ;T0[I"(p1, p2 = v2, p3 = v3);T@>FI" GDBM;TcRDoc::NormalClass00reject%21-i.ri000064400000000606152376017340007024 0ustar00U:RDoc::AnyMethod[iI" reject!:ETI"GDBM#reject!;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"RDeletes every key-value pair from _gdbm_ for which _block_ evaluates to true.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"0gdbm.reject! { |key, value| block } -> gdbm;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00update-i.ri000064400000000715152376017340006623 0ustar00U:RDoc::AnyMethod[iI" update:ETI"GDBM#update;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"MAdds the key-value pairs of _other_ to _gdbm_, overwriting entries with ;TI"Lduplicate keys with those from _other_. _other_ must have an each_pair ;TI" method.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I" gdbm.update(other) -> gdbm ;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00empty%3f-i.ri000064400000000517152376017340006775 0ustar00U:RDoc::AnyMethod[iI" empty?:ETI"GDBM#empty?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"+Returns true if the database is empty.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I""gdbm.empty? -> true or false ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00values-i.ri000064400000000521152376017340006633 0ustar00U:RDoc::AnyMethod[iI" values:ETI"GDBM#values;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"5Returns an array of all values of this database.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"gdbm.values -> array ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00include%3f-i.ri000064400000000620152376017340007255 0ustar00U:RDoc::AnyMethod[iI" include?:ETI"GDBM#include?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CReturns true if the given key _k_ exists within the database. ;TI"Returns false otherwise.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"&gdbm.include?(k) -> true or false;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00cdesc-GDBM.ri000064400000010146152376017340006702 0ustar00U:RDoc::NormalClass[iI" GDBM:ET@I" Object;To:RDoc::Markup::Document: @parts[o;;[S:RDoc::Markup::Heading: leveli: textI" Summary;To:RDoc::Markup::BlankLineo:RDoc::Markup::Paragraph;[I"ORuby extension for GNU dbm (gdbm) -- a simple database engine for storing ;TI"key-value pairs on disk.;T@S; ; i; I"Description;T@o; ;[ I"QGNU dbm is a library for simple databases. A database is a file that stores ;TI"Rkey-value pairs. Gdbm allows the user to store, retrieve, and delete data by ;TI"Okey. It furthermore allows a non-sorted traversal of all key-value pairs. ;TI"HA gdbm database thus provides the same functionality as a hash. As ;TI"Pwith objects of the Hash class, elements can be accessed with []. ;TI"QFurthermore, GDBM mixes in the Enumerable module, thus providing convenient ;TI"0methods such as #find, #collect, #map, etc.;T@o; ;[ I"PA process is allowed to open several different databases at the same time. ;TI"QA process can open a database as a "reader" or a "writer". Whereas a reader ;TI"Phas only read-access to the database, a writer has read- and write-access. ;TI"RA database can be accessed either by any number of readers or by exactly one ;TI"writer at the same time.;T@S; ; i; I" Examples;T@o:RDoc::Markup::List: @type: NUMBER: @items[o:RDoc::Markup::ListItem: @label0;[o; ;[I"COpening/creating a database, and filling it with some entries:;T@o:RDoc::Markup::Verbatim;[ I"require 'gdbm' ;TI" ;TI"&gdbm = GDBM.new("fruitstore.db") ;TI"gdbm["ananas"] = "3" ;TI"gdbm["banana"] = "8" ;TI" gdbm["cranberry"] = "4909" ;TI"gdbm.close ;T: @format0o;;0;[ o; ;[I"Reading out a database:;T@o;;[ I"require 'gdbm' ;TI" ;TI"&gdbm = GDBM.new("fruitstore.db") ;TI"$gdbm.each_pair do |key, value| ;TI"" print "#{key}: #{value}\n" ;TI" end ;TI"gdbm.close ;T;0o; ;[I" produces;T@o;;[I"banana: 8 ;TI"ananas: 3 ;TI"cranberry: 4909 ;T;0S; ; i; I" Links;T@o;;: BULLET;[o;;0;[o; ;[I"&http://www.gnu.org/software/gdbm/;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0;0;0[[ U:RDoc::Constant[iI" READER;TI"GDBM::READER;T00o;;[o; ;[I"open database as a reader;T@;@W;0@W@cRDoc::NormalClass0U;[iI" WRITER;TI"GDBM::WRITER;T00o;;[o; ;[I"open database as a writer;T@;@W;0@W@@c0U;[iI" WRCREAT;TI"GDBM::WRCREAT;T00o;;[o; ;[I"Popen database as a writer; if the database does not exist, create a new one;T@;@W;0@W@@c0U;[iI" NEWDB;TI"GDBM::NEWDB;T00o;;[o; ;[I"Aopen database as a writer; overwrite any existing databases ;T@;@W;0@W@@c0U;[iI" FAST;TI"GDBM::FAST;T00o;;[o; ;[I"Cflag for #new and #open. this flag is obsolete for gdbm >= 1.8;T@;@W;0@W@@c0U;[iI" SYNC;TI"GDBM::SYNC;T00o;;[o; ;[I"2flag for #new and #open. only for gdbm >= 1.8;T@;@W;0@W@@c0U;[iI" NOLOCK;TI"GDBM::NOLOCK;T00o;;[o; ;[I"flag for #new and #open;T@;@W;0@W@@c0U;[iI" VERSION;TI"GDBM::VERSION;T00o;;[o; ;[I" version of the gdbm library;T@;@W;0@W@@c0[[I"Enumerable;To;;[;@W;0I"ext/gdbm/gdbm.c;T[[I" class;T[[: public[[I"new;T@£[I" open;T@£[:protected[[: private[[I" instance;T[[;[-[I"[];T@£[I"[]=;T@£[I"cachesize=;T@£[I" clear;T@£[I" close;T@£[I" closed?;T@£[I" delete;T@£[I"delete_if;T@£[I" each;T@£[I" each_key;T@£[I"each_pair;T@£[I"each_value;T@£[I" empty?;T@£[I"fastmode=;T@£[I" fetch;T@£[I" has_key?;T@£[I"has_value?;T@£[I" include?;T@£[I" invert;T@£[I"key;T@£[I" key?;T@£[I" keys;T@£[I" length;T@£[I" member?;T@£[I" reject;T@£[I" reject!;T@£[I"reorganize;T@£[I" replace;T@£[I" select;T@£[I" shift;T@£[I" size;T@£[I" store;T@£[I" sync;T@£[I"syncmode=;T@£[I" to_a;T@£[I" to_hash;T@£[I" update;T@£[I" value?;T@£[I" values;T@£[I"values_at;T@£[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@W@WcRDoc::TopLevelsize-i.ri000064400000000522152376017340006307 0ustar00U:RDoc::AnyMethod[iI" size:ETI"GDBM#size;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I" fixnum;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00select-i.ri000064400000000636152376017340006622 0ustar00U:RDoc::AnyMethod[iI" select:ETI"GDBM#select;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"RReturns a new array of all key-value pairs of the database for which _block_ ;TI"evaluates to true.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"1gdbm.select { |key, value| block } -> array ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00close-i.ri000064400000000500152376017340006436 0ustar00U:RDoc::AnyMethod[iI" close:ETI"GDBM#close;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I")Closes the associated database file.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"gdbm.close -> nil ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00%5b%5d-i.ri000064400000000506152376017340006210 0ustar00U:RDoc::AnyMethod[iI"[]:ETI" GDBM#[];TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"2Retrieves the _value_ corresponding to _key_.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"gdbm[key] -> value ;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00invert-i.ri000064400000000570152376017340006647 0ustar00U:RDoc::AnyMethod[iI" invert:ETI"GDBM#invert;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"KReturns a hash created by using _gdbm_'s values as keys, and the keys ;TI"as values.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"gdbm.invert -> hash ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00sync-i.ri000064400000001174152376017340006315 0ustar00U:RDoc::AnyMethod[iI" sync:ETI"GDBM#sync;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"NUnless the _gdbm_ object has been opened with the *SYNC* flag, it is not ;TI"Qguarenteed that database modification operations are immediately applied to ;TI"Jthe database file. This method ensures that all recent modifications ;TI"Rto the database are written to the file. Blocks until all writing operations ;TI"$to the disk have been finished.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"gdbm.sync -> gdbm ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00delete-i.ri000064400000000711152376017340006577 0ustar00U:RDoc::AnyMethod[iI" delete:ETI"GDBM#delete;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"PRemoves the key-value-pair with the specified _key_ from this database and ;TI"Mreturns the corresponding _value_. Returns nil if the database is empty.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"&gdbm.delete(key) -> value or nil ;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00delete_if-i.ri000064400000000614152376017340007257 0ustar00U:RDoc::AnyMethod[iI"delete_if:ETI"GDBM#delete_if;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"RDeletes every key-value pair from _gdbm_ for which _block_ evaluates to true.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"2gdbm.delete_if { |key, value| block } -> gdbm;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00to_hash-i.ri000064400000000543152376017340006765 0ustar00U:RDoc::AnyMethod[iI" to_hash:ETI"GDBM#to_hash;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"EReturns a hash of all key-value pairs contained in the database.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"gdbm.to_hash -> hash ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00open-c.ri000064400000001655152376017340006300 0ustar00U:RDoc::AnyMethod[iI" open:ETI"GDBM::open;TT: publico: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::BlankLineo; ; [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::NormalClass00value%3f-i.ri000064400000000614152376017340006751 0ustar00U:RDoc::AnyMethod[iI" value?:ETI"GDBM#value?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"EReturns true if the given value _v_ exists within the database. ;TI"Returns false otherwise.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"$gdbm.value?(v) -> true or false;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00key-i.ri000064400000000645152376017340006133 0ustar00U:RDoc::AnyMethod[iI"key:ETI" GDBM#key;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"KReturns the _key_ for a given _value_. If several keys may map to the ;TI">same value, the key that is found first will be returned.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"gdbm.key(value) -> key ;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00store-i.ri000064400000000545152376017340006476 0ustar00U:RDoc::AnyMethod[iI" store:ETI"GDBM#store;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I";Associates the value _value_ with the specified _key_.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"$gdbm.store(key, value) -> value;T0[I" (p1, p2);T@FI" GDBM;TcRDoc::NormalClass00%5b%5d%3d-i.ri000064400000000533152376017340006504 0ustar00U:RDoc::AnyMethod[iI"[]=:ETI" GDBM#[]=;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I";Associates the value _value_ with the specified _key_.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"gdbm[key]= value -> value;T0[I" (p1, p2);T@FI" GDBM;TcRDoc::NormalClass00reject-i.ri000064400000000707152376017340006616 0ustar00U:RDoc::AnyMethod[iI" reject:ETI"GDBM#reject;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"MReturns a hash copy of _gdbm_ where all key-value pairs from _gdbm_ for ;TI"Fwhich _block_ evaluates to true are removed. See also: #delete_if;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"0gdbm.reject { |key, value| block } -> hash ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00keys-i.ri000064400000000511152376017340006306 0ustar00U:RDoc::AnyMethod[iI" keys:ETI"GDBM#keys;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"3Returns an array of all keys of this database.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"gdbm.keys -> array ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00fastmode%3d-i.ri000064400000001143152376017340007433 0ustar00U:RDoc::AnyMethod[iI"fastmode=:ETI"GDBM#fastmode=;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"OTurns the database's fast mode on or off. If fast mode is turned on, gdbm ;TI"Jdoes not wait for writes to be flushed to the disk before continuing.;To:RDoc::Markup::BlankLineo; ; [I"MThis option is obsolete for gdbm >= 1.8 since fast mode is turned on by ;TI""default. See also: #syncmode=;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"(gdbm.fastmode = boolean -> boolean ;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00closed%3f-i.ri000064400000000552152376017340007107 0ustar00U:RDoc::AnyMethod[iI" closed?:ETI"GDBM#closed?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"BReturns true if the associated database file has been closed.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"$gdbm.closed? -> true or false ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00member%3f-i.ri000064400000000615152376017340007105 0ustar00U:RDoc::AnyMethod[iI" member?:ETI"GDBM#member?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CReturns true if the given key _k_ exists within the database. ;TI"Returns false otherwise.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"%gdbm.member?(k) -> true or false;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00each-i.ri000064400000000651152376017340006240 0ustar00U:RDoc::AnyMethod[iI" each:ETI"GDBM#each;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"NExecutes _block_ for each key in the database, passing the _key_ and the ;TI")correspoding _value_ as a parameter.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"2gdbm.each_pair { |key, value| block } -> gdbm;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00has_value%3f-i.ri000064400000000630152376017340007602 0ustar00U:RDoc::AnyMethod[iI"has_value?:ETI"GDBM#has_value?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"EReturns true if the given value _v_ exists within the database. ;TI"Returns false otherwise.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"(gdbm.has_value?(v) -> true or false;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00syncmode%3d-i.ri000064400000001454152376017340007457 0ustar00U:RDoc::AnyMethod[iI"syncmode=:ETI"GDBM#syncmode=;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"QTurns the database's synchronization mode on or off. If the synchronization ;TI"Omode is turned on, the database's in-memory state will be synchronized to ;TI"Ndisk after every database modification operation. If the synchronization ;TI"Qmode is turned off, GDBM does not wait for writes to be flushed to the disk ;TI"before continuing.;To:RDoc::Markup::BlankLineo; ; [I"PThis option is only available for gdbm >= 1.8 where syncmode is turned off ;TI"%by default. See also: #fastmode=;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"(gdbm.syncmode = boolean -> boolean ;T0[I" (p1);T@FI" GDBM;TcRDoc::NormalClass00each_key-i.ri000064400000000615152376017340007110 0ustar00U:RDoc::AnyMethod[iI" each_key:ETI"GDBM#each_key;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"@Executes _block_ for each key in the database, passing the ;TI"_key_ as a parameter.;T: @fileI"ext/gdbm/gdbm.c;T:0@omit_headings_from_table_of_contents_below0I"+gdbm.each_key { |key| block } -> gdbm ;T0[I"();T@FI" GDBM;TcRDoc::NormalClass00