call is a class function
This commit is contained in:
parent
8a1c464c8b
commit
75ccc3195d
|
@ -3,7 +3,7 @@ require 'zero/all'
|
||||||
class SpecApp
|
class SpecApp
|
||||||
attr_reader :env
|
attr_reader :env
|
||||||
|
|
||||||
def call(env)
|
def self.call(env)
|
||||||
@env = env
|
@env = env
|
||||||
return [200, {'Content-Type' => 'text/html'}, ['success']]
|
return [200, {'Content-Type' => 'text/html'}, ['success']]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user