Module: ActiveObjectTokyoCabinet

Defined in:
lib/active_object/adapters/tokyo_cabinet.rb

Overview

访问TokyoCabinet的加载模块

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/active_object/adapters/tokyo_cabinet.rb', line 4

def self.included(base)
	require 'rufus/tokyo'

	base.extend ClassMethods
	base.send :include, InstanceMethods

	base.send :adb=, Rufus::Tokyo::Cabinet.new(base.configurations)
end