Class: Orthoses::Store

Inherits:
Object
  • Object
show all
Defined in:
lib/orthoses/store.rb

Overview

Internal middleware for return store object Builder set this middleware on last stack by default

Instance Method Summary collapse

Constructor Details

#initialize(loader) ⇒ Store

Returns a new instance of Store.



7
8
9
# File 'lib/orthoses/store.rb', line 7

def initialize(loader)
  @loader = loader
end

Instance Method Details

#callObject



11
12
13
14
# File 'lib/orthoses/store.rb', line 11

def call
  @loader.call
  Utils.new_store
end