1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00

Sources can be loaded from.

This commit is contained in:
Rob Rix 2015-10-29 16:08:40 -04:00
parent 0f74cd324d
commit aa4f982c42

View File

@ -15,6 +15,10 @@ struct Source {
let URL: NSURL
let type: String
func load() throws -> String {
return try NSString(contentsOfURL: URL, encoding: NSUTF8StringEncoding) as String
}
}