Name things :)
This commit is contained in:
parent
08b75f06ef
commit
6ccab8e071
13 changed files with 128 additions and 46 deletions
|
@ -124,7 +124,7 @@ module Middleman
|
|||
# @param [String, #match, #call] matcher A matcher String, RegExp, Proc, etc.
|
||||
# @param [String] path A path as a string
|
||||
# @return [Boolean] Whether the path matches the matcher
|
||||
Contract Or[String, RespondTo[:match], RespondTo[:call], RespondTo[:to_s]], String => Bool
|
||||
Contract PATH_MATCHER, String => Bool
|
||||
def self.path_match(matcher, path)
|
||||
case
|
||||
when matcher.is_a?(String)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue