Class: Mushin::Store
- Inherits:
-
Test::Sample::Ext
- Object
- Test::Sample::Ext
- Mushin::Store
- Defined in:
- lib/mushin/store.rb
Overview
TODO maybe use refinements instead of inheritance for ‘using Mushin::Ext`
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(ext, opts = {}, params = {}) ⇒ Store
constructor
A new instance of Store.
Constructor Details
#initialize(ext, opts = {}, params = {}) ⇒ Store
Returns a new instance of Store.
4 5 6 7 8 |
# File 'lib/mushin/store.rb', line 4 def initialize(ext, opts = {}, params= {}) @ext = ext @opts = opts @params = params end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 14 |
# File 'lib/mushin/store.rb', line 10 def call(env) env ||= Hash.new @ext.call(env) return env end |