Module: HttpRouter::GenerationHelper

Defined in:
lib/http_router/generation_helper.rb

Instance Method Summary collapse

Instance Method Details

#max_param_countObject



3
4
5
# File 'lib/http_router/generation_helper.rb', line 3

def max_param_count
  @generator.max_param_count
end

#param_namesObject



25
26
27
# File 'lib/http_router/generation_helper.rb', line 25

def param_names
  @generator.param_names
end

#path(*args) ⇒ Object



19
20
21
22
23
# File 'lib/http_router/generation_helper.rb', line 19

def path(*args)
  @generator.path(*args)
rescue InvalidRouteException
  nil
end

#url(*args) ⇒ Object



7
8
9
10
11
# File 'lib/http_router/generation_helper.rb', line 7

def url(*args)
  @generator.url(*args)
rescue InvalidRouteException
  nil
end

#url_ns(*args) ⇒ Object



13
14
15
16
17
# File 'lib/http_router/generation_helper.rb', line 13

def url_ns(*args)
  @generator.url_ns(*args)
rescue InvalidRouteException
  nil
end