Permalink
Browse files

Docs for definitions and adapters

  • Loading branch information...
1 parent 65e4582 commit fe42a98461e4dd213157385c7e18dcca1beead32 @jnunemaker committed Sep 7, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/adapter.rb
View
@@ -6,6 +6,7 @@ module Adapter
extend Asserts
include Defaults
+ # Stores the definitions for each adapter by name
def self.definitions
@definitions ||= {}
end
@@ -20,6 +21,7 @@ def self.define(name, mod=nil, &block)
definitions[name.to_sym] = definition_module
end
+ # Memoizes adapter instances based on their definitions
def self.adapters
@adapters ||= {}
end

0 comments on commit fe42a98

Please sign in to comment.