File: mount.rb

package info (click to toggle)
ruby-rack-mount 0.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 424 kB
  • ctags: 569
  • sloc: ruby: 4,100; yacc: 28; makefile: 3
file content (31 lines) | stat: -rw-r--r-- 1,299 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'rack'

module Rack #:nodoc:
  # A stackable dynamic tree based Rack router.
  #
  # Rack::Mount supports Rack's Cascade style of trying several routes until
  # it finds one that is not a 404. This allows multiple routes to be nested
  # or stacked on top of each other. Since the application endpoint can
  # trigger the router to continue matching, middleware can be used to add
  # arbitrary conditions to any route. This allows you to route based on
  # other request attributes, session information, or even data dynamically
  # pulled from a database.
  module Mount
    autoload :CodeGeneration, 'rack/mount/code_generation'
    autoload :GeneratableRegexp, 'rack/mount/generatable_regexp'
    autoload :Multimap, 'rack/mount/multimap'
    autoload :Prefix, 'rack/mount/prefix'
    autoload :RegexpWithNamedGroups, 'rack/mount/regexp_with_named_groups'
    autoload :Route, 'rack/mount/route'
    autoload :RouteSet, 'rack/mount/route_set'
    autoload :RoutingError, 'rack/mount/route_set'
    autoload :Strexp, 'rack/mount/strexp'
    autoload :Utils, 'rack/mount/utils'
    autoload :Version, 'rack/mount/version'

    module Analysis #:nodoc:
      autoload :Histogram, 'rack/mount/analysis/histogram'
      autoload :Splitting, 'rack/mount/analysis/splitting'
    end
  end
end