Module: Roda::RodaPlugins::ReeRoutes::RequestMethods

Defined in:
lib/ree_lib/packages/ree_roda/package/ree_roda/plugins/ree_routes.rb

Constant Summary collapse

@@_actions_cache =
{}
@@_route_serializers_cache =
{}

Instance Method Summary collapse

Instance Method Details

#ree_routesObject



231
232
233
234
235
236
237
238
# File 'lib/ree_lib/packages/ree_roda/package/ree_roda/plugins/ree_routes.rb', line 231

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