# File lib/action_dispatch/routing/mapper.rb, line 254 254: def default_url_options=(options) 255: @set.default_url_options = options 256: end
# File lib/action_dispatch/routing/mapper.rb, line 233 233: def match(path, options=nil) 234: mapping = Mapping.new(@set, @scope, path, options || {}).to_route 235: @set.add_route(*mapping) 236: self 237: end
# File lib/action_dispatch/routing/mapper.rb, line 239 239: def mount(app, options = nil) 240: if options 241: path = options.delete(:at) 242: else 243: options = app 244: app, path = options.find { |k, v| k.respond_to?(:call) } 245: options.delete(app) if app 246: end 247: 248: raise "A rack application must be specified" unless path 249: 250: match(path, options.merge(:to => app, :anchor => false, :format => false)) 251: self 252: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.