Skip to content

Instantly share code, notes, and snippets.

@hasimo
Created January 31, 2011 02:10
Show Gist options
  • Save hasimo/803536 to your computer and use it in GitHub Desktop.
Save hasimo/803536 to your computer and use it in GitHub Desktop.
kyoto.rb
require 'rubygems'
require 'kyotocabinet'
db = KyotoCabinet::DB.new
db.open('hoge.kch')
db['hoge'] = 'foo'
begin
db.each do |key,value|
raise StandardError
end
rescue => e
p e
end
# % ruby -v kyoto.rb
# ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux]
# %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment