Class: Mushin::Store

Inherits:
Test::Sample::Ext show all
Defined in:
lib/mushin/store.rb

Overview

TODO maybe use refinements instead of inheritance for ‘using Mushin::Ext`

Instance Method Summary collapse

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