Module: HttpRouter::Sinatra::Extension

Defined in:
lib/http_router_sinatra.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



17
18
19
# File 'lib/http_router_sinatra.rb', line 17

def self.included(base)
  base.extend ClassMethods
end

.registered(app) ⇒ Object



13
14
15
# File 'lib/http_router_sinatra.rb', line 13

def self.registered(app)
  app.send(:include, Extension)
end

Instance Method Details

#generate(name, *params) ⇒ Object



21
22
23
# File 'lib/http_router_sinatra.rb', line 21

def generate(name, *params)
  self.class.generate(name, *params)
end