lib/roda.rb
# Whether the new dispatch API should be used.
Whether the new dispatch API should be used.
Whether the new dispatch API should be used .
def use_new_dispatch_api?
          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
Falling back to using #call for dispatching for #{self}, due to #call override in #{mod}.
#{mod} should be fixed to adjust to Roda's new dispatch API, and override _roda_handle_main_route or _roda_run_main_route
WARNING
              return false
            end
          end
          true
        end
def use_new_dispatch_api? 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 
Falling back to using #call for dispatching for  #{ self } , due to #call override in  #{ mod } .
 #{ mod }  should be fixed to adjust to Roda's new dispatch API, and override _roda_handle_main_route or _roda_run_main_route
 WARNING return false end end true end
Whether the new dispatch API should be used.
Whether the new dispatch API should be used .
# RODA4: remove this method