module Roda::RodaPlugins::ReeRoutes::RequestMethods

def get_cached_action(route)

def get_cached_action(route)
  @@_actions_cache[route.action.object_id] ||= route.action.klass.new
end

def get_cached_serializer(route)

def get_cached_serializer(route)
  @@_route_serializers_cache[route.serializer.object_id] ||= route.serializer.klass.new
end

def ree_routes

def ree_routes
  if scope.opts[:ree_routes_proc]
    scope.opts[:ree_routes_proc].each do |request_proc|
      self.instance_exec(self, &request_proc)
    end
  end
  nil
end