Module: Backyard

Defined in:
lib/backyard.rb,
lib/backyard/adapter.rb,
lib/backyard/session.rb,
lib/backyard/version.rb,
lib/backyard/model_store.rb,
lib/backyard/configuration.rb

Defined Under Namespace

Modules: Session Classes: Adapter, Configuration, ModelStore

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configObject



12
13
14
15
# File 'lib/backyard.rb', line 12

def self.config
  @config ||= Backyard::Configuration.new
  @config
end

.configure(&block) ⇒ Object



7
8
9
10
# File 'lib/backyard.rb', line 7

def self.configure(&block)
  @config = Backyard::Configuration.new
  @config.instance_eval(&block)
end

.global_storeObject



17
18
19
20
21
# File 'lib/backyard.rb', line 17

def self.global_store
  return @global_store if @global_store
  @global_store = Object.new
  @global_store.extend Backyard::Session
end