1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Info has a property for its Categories.

This commit is contained in:
Rob Rix 2015-09-30 16:02:01 -04:00
parent d29e14508a
commit 84eeba6111

View File

@ -1,5 +1,12 @@
public enum Info: Equatable {
case Literal(String, Set<Category>)
public var categories: Set<Category> {
switch self {
case let .Literal(_, c):
return c
}
}
}