refactor(filter): Filters should be private, we only expose resolvable

This commit is contained in:
Kyle Fuller
2016-11-28 19:19:21 +00:00
parent b7e200a8a0
commit f0591408be
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
public protocol FilterType {
protocol FilterType {
func invoke(value: Any?, arguments: [Any?]) throws -> Any?
}

View File

@@ -76,7 +76,7 @@ public class TokenParser {
tokens.insert(token, at: 0)
}
public func findFilter(_ name: String) throws -> FilterType {
func findFilter(_ name: String) throws -> FilterType {
if let filter = namespace.filters[name] {
return filter
}