This commit is contained in:
Thomas Reynolds 2016-01-24 12:30:53 -08:00
parent 4deaa65a6d
commit deae5d2216

View file

@ -184,7 +184,7 @@ module Middleman
# @param [String] path The file path.
# @param [Boolean] glob If the path contains wildcard or glob characters.
# @return [Middleman::SourceFile, nil]
Contract Or[Symbol, ArrayOf[Symbol], SetOf[Symbol]], String, Maybe[Bool] => Maybe[SourceFile]
Contract Or[Symbol, ArrayOf[Symbol], SetOf[Symbol]], Or[Pathname, String], Maybe[Bool] => Maybe[SourceFile]
def find(types, path, glob=false)
array_of_types = Array(types)