Sinatra::Base.middleware ããããã Sinatra::Base ãç¶æ¿ããã¯ã©ã¹ã«ã¯ãã¯ã©ã¹ã¡ã½ããã¨ã㦠Sinatra::Base.middleware ãç¨æããã¦ãããæ示çã« Sinatra::Base.use ã§å©ç¨ã宣è¨ããããã«ã¦ã§ã¢ã¯ããããä¸è¦§ãåå¾ã§ããã + (Object) middleware ã¨ãããã Sinatra ã¢ããªã±ã¼ã·ã§ã³ãå®éã« Rack ã§ãã¹ããããã¢ã¯ã»ã¹ãããéã«ã¯ã use ã§å®£è¨ãã¦ããªãããã«ã¦ã§ã¢ãããããå¼ã°ããããã§ããã®å ¨è²ãç¥ãããå ´åããããã RailsãRamazeãCamping ã¨ãã£ã Rack ã«å¯¾å¿ãããã¬ã¼ã ã¯ã¼ã¯ãªãã°åããããªæ¹æ³ã§ãä¸ãè¦ãããã¨ãå¯è½ãªã¯ãã set_trace_func ã使ã£ã¦ã¿ã Kernel#set_trace_func 㯠profile.rb
{{#tags}}- {{label}}
{{/tags}}