1 # -*- encoding: binary -*-
3 module Metropolis::MultiHash
4 autoload :Digest, 'metropolis/multi_hash/digest'
5 autoload :ToI, 'metropolis/multi_hash/to_i'
8 sym = obj.instance_eval {
11 extend Metropolis::MultiHash::ToI
13 extend Metropolis::MultiHash::Digest
15 extend TDB::HashFunctions
19 obj.respond_to?(sym) or
20 raise ArgumentError, "multi_hash=#{sym} not supported"
21 (class << obj; self; end).instance_eval do
22 alias_method :multi_hash, sym