Slide 12
Slide 12 text
3BDLϛυϧΣΞΛ࡞ͬͯΈΑ͏
class UpcaseAll
def initialize(app)
@app = app
end
def call(env)
code, headers, body = @app.call(env)
body.each {|part| part.upcase! }
[code, headers, body]
end
end
class RackApp
#...
end
use UpcaseAll
run RackApp.new
DPOpHSV