module Roda::RodaPlugins::Base::ClassMethods

def use_new_dispatch_api?

Whether the new dispatch API should be used.
def use_new_dispatch_api?
  # RODA4: remove this method
  ancestors.each do |mod|
    break if mod == InstanceMethods
    meths = mod.instance_methods(false)
    if meths.include?(:call) && !(meths.include?(:_roda_handle_main_route) || meths.include?(:_roda_run_main_route))
    RodaPlugins.warn <<WARNING
back to using #call for dispatching for #{self}, due to #call override in #{mod}.
hould be fixed to adjust to Roda's new dispatch API, and override _roda_handle_main_route or _roda_run_main_route
      return false
    end
  end
  true
end