diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-11-23 12:09:56 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-11-23 12:09:56 -0800 |
commit | df91c57c312bee97a16bced1035bd704e518ac38 (patch) | |
tree | 0678c58830c09e9a8e0de92a33fa078f2445ee4e /lib/metropolis.rb | |
parent | 51d43461adca99482154ddbd337658a70d5ffc3d (diff) | |
download | metropolis-df91c57c312bee97a16bced1035bd704e518ac38.tar.gz |
rename internal "TokyoCabinet" => "TC"
It's less typing and less likely to clash on both the eyes and the interpreter.
Diffstat (limited to 'lib/metropolis.rb')
-rw-r--r-- | lib/metropolis.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/metropolis.rb b/lib/metropolis.rb index 987040d..05dc071 100644 --- a/lib/metropolis.rb +++ b/lib/metropolis.rb @@ -3,7 +3,7 @@ require 'rack' require 'uri' module Metropolis - autoload :TokyoCabinet, 'metropolis/tokyocabinet' + autoload :TC, 'metropolis/tc' def self.new(opts = {}) opts = opts.dup @@ -15,7 +15,7 @@ module Metropolis opts[:query] = Rack::Utils.parse_query(uri.query) if uri.query case ext = File.extname(uri.path) when '.tch' - rv.extend Metropolis::TokyoCabinet::HDB + rv.extend Metropolis::TC::HDB else raise ArgumentError, "unsupported suffix: #{ext}" end |