Class: Sinatra::URL::Mapper
- Inherits:
-
Object
- Object
- Sinatra::URL::Mapper
- Defined in:
- lib/sinatra/url.rb
Class Method Summary collapse
Instance Method Summary collapse
- #[](name) ⇒ Object
- #[]=(name, path) ⇒ Object
-
#initialize ⇒ Mapper
constructor
A new instance of Mapper.
Constructor Details
#initialize ⇒ Mapper
Returns a new instance of Mapper.
17 18 19 |
# File 'lib/sinatra/url.rb', line 17 def initialize @map = {} end |
Class Method Details
.default ⇒ Object
13 14 15 |
# File 'lib/sinatra/url.rb', line 13 def self.default @default ||= new end |