# File lib/http_router/node/request.rb, line 8 def initialize(router, parent, opts) opts.each do |k, v| v = [v] unless v.is_a?(Array) case k when :request_method v.map!{|val| val.to_s.upcase} v.all?{|m| VALID_HTTP_VERBS.include?(m)} or raise InvalidRequestValueError, "Invalid value for request_method #{v.inspect}" v.each{|val| router.known_methods << val} end opts[k] = v end @opts = opts @opts[:request_method].each { |m| router.known_methods << m } if @opts.key?(:request_method) super(router, parent) end
# File lib/http_router/node/request.rb, line 39 def inspect_label "#{self.class.name.split("::").last} #{opts.inspect} (#{@matchers.size} matchers)" end
Generated with the Darkfish Rdoc Generator 2.