Class: SC::Rack::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/strobe/sproutcore.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.strobe_stack(obj = nil) ⇒ Object



4
5
6
7
# File 'lib/strobe/sproutcore.rb', line 4

def self.strobe_stack(obj = nil)
  @strobe_stack = obj if obj
  @strobe_stack
end

Instance Method Details

#call(env) ⇒ Object



9
10
11
# File 'lib/strobe/sproutcore.rb', line 9

def call(env)
  wrapped_app.call(env)
end

#wrapped_appObject



13
14
15
# File 'lib/strobe/sproutcore.rb', line 13

def wrapped_app
  @wrapped_app ||= self.class.strobe_stack.wrap(@app)
end