Class: Rack::Server
Instance Method Summary collapse
-
#options_with_tanuki(*args, &block) ⇒ Object
Wraps around Rack::Server#options to update application configuration accordingly.
Instance Method Details
#options_with_tanuki(*args, &block) ⇒ Object
Wraps around Rack::Server#options to update application configuration accordingly.
5 6 7 8 9 10 11 12 13 |
# File 'lib/tanuki/extensions/rack/server.rb', line 5 def (*args, &block) rack_server = self = (*args, &block) Tanuki::Application.instance_eval do .each_pair {|k, v| @context.send :"#{k.downcase}=", v } @context.running_server = rack_server.server end end |