12. Rackããã«ã¦ã§ã¢ãä½ã£ã¦ã¿ãã 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 conï¬g.ru
{{#tags}}- {{label}}
{{/tags}}