Object
# File lib/http_router/request.rb, line 6 def initialize(path, rack_request, perform_call) @rack_request, @perform_call = rack_request, perform_call @path = URI.unescape(path).split(/\//) @path.shift if @path.first == '' @path.push('') if path[-1] == // @extra_env = {} @params = [] @matches = [] end
# File lib/http_router/request.rb, line 16 def joined_path @path * '/' end
# File lib/http_router/request.rb, line 20 def matched_route(response) @matches << response end
# File lib/http_router/request.rb, line 36 def path_finished? @path.size == 0 or @path.size == 1 && @path.first == '' end
# File lib/http_router/request.rb, line 24 def perform_call @perform_call == true end
Generated with the Darkfish Rdoc Generator 2.