class PingPong
Constants
- VERSION
Public Class Methods
new(app)
click to toggle source
# File lib/ping_pong.rb, line 5 def initialize app @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/ping_pong.rb, line 9 def call env if env['PATH_INFO'] == '/__ping__' [200,{ 'Content-Type' => 'text/plain' },['PONG!']] else @app.call env end end