typo
This commit is contained in:
parent
06ebbd97c0
commit
9c0371165e
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue