lib/router/tree/action/matcher.rb
# Match by request method.  This can be an array if you want
# to match on multiple methods.
Match by request method.  This can be an array if you want
to match on multiple methods.
Match by request method . This can be an array if you want to match on multiple methods .
def match_method(type)
          if type.is_a?(Array)
            type.any?{|t| match_method(t)}
          else
            type.to_s.upcase == @env["REQUEST_METHOD"]
          end
        end
def match_method ( type ) if type . is_a? ( Array ) type . any? { | t | match_method ( t ) } else type . to_s . upcase == @env [ "REQUEST_METHOD" ] end end
Match by request method.
Match by request method .
type