Sha256: 8621e72f43dc978890b62d60abb1dfe587c357ed629f54e1eebec5d5ed79e4b7

Contents?: true

Size: 439 Bytes

Versions: 5

Compression:

Stored size: 439 Bytes

Contents

require 'gdbm'

movies = GDBM.new("movies.db")

movies.update(
              { "Vertigo" => "Alfred Hitchcock",
                "In a Lonely Place" => "Nicholas Ray",
                "Johnny Guitar" => "Nicholas Ray",
                "Touch of Evil" => "Orson Welles",
                "Psycho" => "Alfred Hitchcock",
              })

movies.close

__END__

# irb session

require "gdbm"

movies = GDBM.new("movies.db")
movies.values.uniq

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
wbzyl-datamapper-tutorial-0.0.10 lib/public/doc/plain-text-files/gdbm-example.rb
wbzyl-datamapper-tutorial-0.0.11 lib/public/doc/plain-text-files/gdbm-example.rb
wbzyl-datamapper-tutorial-0.0.9 lib/public/doc/plain-text-files/gdbm-example.rb
nosql-tutorial-0.1.1 lib/public/doc/plain-text-files/gdbm-example.rb
nosql-tutorial-0.1.0 lib/public/doc/plain-text-files/gdbm-example.rb