From f50b17e86ccd8bcfafbe124e98b5ad04e8ab5f6d Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 23 Jan 2020 15:55:47 +1300 Subject: Prefer `**options`. --- lib/rack/server.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rack/server.rb') diff --git a/lib/rack/server.rb b/lib/rack/server.rb index 6137f043..491a81f2 100644 --- a/lib/rack/server.rb +++ b/lib/rack/server.rb @@ -285,7 +285,7 @@ module Rack self.class.middleware end - def start &blk + def start(&block) if options[:warn] $-w = true end @@ -326,7 +326,7 @@ module Rack end end - server.run wrapped_app, options, &blk + server.run(wrapped_app, **options, &block) end def server -- cgit v1.2.1