class HttpRouter::Route
Public Instance Methods
create_clone(new_router)
click to toggle source
# File lib/http_router/route.rb, line 13 def create_clone(new_router) r = clone r.dest = (begin; dest.clone; rescue; dest; end) r end
matches_with(var_name)
click to toggle source
# File lib/http_router/route.rb, line 23 def matches_with(var_name) @match_with && @match_with[:"#{var_name}"] end
name=(name)
click to toggle source
# File lib/http_router/route.rb, line 27 def name=(name) @name = name router.named_routes[name] << self if router end
to_s()
click to toggle source
# File lib/http_router/route.rb, line 19 def to_s "#<HttpRouter:Route #{object_id} @path_for_generation=#{path_for_generation.inspect}>" end