# File lib/http_router/node/arbitrary.rb, line 15 def to_code b, method_name = @blk, :"blk_#{root.next_counter}" inject_root_methods { define_method(method_name) { b } } "#{"if request.path_finished?" unless @allow_partial} request.continue = proc { |state| if state #{super} end } #{method_name}[request, #{@param_names.nil? || @param_names.empty? ? '{}' : "Hash[#{@param_names.inspect}.zip(request.params)]"}] request.continue = nil #{"end" unless @allow_partial}" end
Generated with the Darkfish Rdoc Generator 2.