1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +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
}
}