Module: Tack::Middleware

Instance Method Summary collapse

Instance Method Details

#returning(value) {|value| ... } ⇒ Object

not necessary for the middleware API, but handy for implementing middleware methods

Yields:

  • (value)


15
16
17
18
# File 'lib/tack/middleware.rb', line 15

def returning(value)
  yield(value)
  value
end

#run_suite(tests) ⇒ Object



5
6
7
# File 'lib/tack/middleware.rb', line 5

def run_suite(tests)
  @app.run_suite(tests)
end

#run_test(file, description) ⇒ Object



9
10
11
# File 'lib/tack/middleware.rb', line 9

def run_test(file, description)
  @app.run_test(file, description)
end