summaryrefslogtreecommitdiff
path: root/sample/dbm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/dbm.rb')
-rw-r--r--sample/dbm.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/sample/dbm.rb b/sample/dbm.rb
new file mode 100644
index 0000000..1f2886e
--- /dev/null
+++ b/sample/dbm.rb
@@ -0,0 +1,6 @@
+# ruby
+#
+
+d = Dbm.open("test")
+for k in d.keys; print(k, "\n"); end
+for v in d.values; print(v, "\n"); end