This commit is contained in:
Konstantin Haase 2011-03-06 16:14:58 +01:00
parent 06ebbd97c0
commit 9c0371165e
2 changed files with 4 additions and 4 deletions

View File

@ -162,11 +162,11 @@ can easily define your own matchers:
def initialize(except)
@except = except
@caputres = Match.new([])
@captures = Match.new([])
end
def match(str)
@caputres unless @except === str
@captures unless @except === str
end
end

View File

@ -162,11 +162,11 @@ Rack body对象或者HTTP状态码
def initialize(except)
@except = except
@caputres = Match.new([])
@captures = Match.new([])
end
def match(str)
@caputres unless @except === str
@captures unless @except === str
end
end