module Roda::RodaPlugins::RouteList::InstanceMethods

Public Instance Methods

listed_route(name, args=nil) click to toggle source

Calls the app's listed_route method. If the app's :add_script_name option has been setting, prefixes the resulting path with the script name.

    # File lib/roda/plugins/route_list.rb
136 def listed_route(name, args=nil)
137   app = self.class
138   path = app.listed_route(name, args)
139   path = request.script_name.to_s + path if app.opts[:add_script_name]
140   path
141 end