From 5557518c81f1a70f825bfc6e4a6671dc6e12b6e4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 1 Dec 2010 09:58:22 +0000 Subject: minor RDoc updates --- ext/tdb/tdb.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ext') diff --git a/ext/tdb/tdb.c b/ext/tdb/tdb.c index cfe7970..0ad7d5f 100644 --- a/ext/tdb/tdb.c +++ b/ext/tdb/tdb.c @@ -677,3 +677,14 @@ void Init_tdb_ext(void) tdb_CONST(INCOMPATIBLE_HASH); #endif } + +/* + * Document-class: TDB + * + * + * tdb = TDB.new("/path/to/file", flags => IO::RDWR|IO::CREAT) + * tdb.store("HELLO", "world") + * tdb.fetch("HELLO") -> "world" + * tdb.delete("HELLO") -> "world" + * + */ -- cgit v1.2.3-24-ge0c7