Module: Briskly
- Defined in:
- lib/briskly.rb,
lib/briskly/version.rb
Defined Under Namespace
Classes: Element, Keyword, Scope, Store
Constant Summary
collapse
- VERSION =
'0.1.1'
- GEMDIR =
Pathname.new(__FILE__).parent.parent.parent
- @@storage =
{}
Class Method Summary
collapse
Class Method Details
.on(*keys) ⇒ Object
12
13
14
15
|
# File 'lib/briskly.rb', line 12
def on(*keys)
stores = [keys].flatten.map { |key| @@storage[key] || Briskly::Store.new(key) }
Briskly::Scope.new stores
end
|
.store(key) ⇒ Object
8
9
10
|
# File 'lib/briskly.rb', line 8
def store(key)
@@storage[key] = Briskly::Store.new(key)
end
|