# File lib/http_router/node/lookup.rb, line 9 def add(part) Node.new(@router, self, @map[part] ||= []) end
# File lib/http_router/node/lookup.rb, line 23 def inspect_label "#{self.class.name}" end
# File lib/http_router/node/lookup.rb, line 17 def inspect_matchers_body @map.map { |key, values| ins = "#{' ' * depth}when #{key.inspect}:\n" ins << values.map{|v| v.inspect}.join("\n") }.join("\n") end
# File lib/http_router/node/lookup.rb, line 27 def to_code part_name = "part#{root.next_counter}" "unless request.path_finished? #{part_name} = request.path.shift case #{part_name} #{@map.map{|k, v| "when #{k.inspect}; #{v.map(&:to_code) * "\n"};"} * "\n"} end request.path.unshift #{part_name} end" end
Generated with the Darkfish Rdoc Generator 2.