Skip to content

Instantly share code, notes, and snippets.

@mattcomi
Last active April 19, 2016 05:31
Show Gist options
  • Save mattcomi/08417d68da50ef18fe2eec62cd2a1003 to your computer and use it in GitHub Desktop.
Save mattcomi/08417d68da50ef18fe2eec62cd2a1003 to your computer and use it in GitHub Desktop.
class Person : ReflectedStringConvertible {
var name: String
var age: Int
var social: Social
init(name: String, age: Int, social: Social) {
self.name = name
self.age = age
self.social = social
}
}
let matt = Person(name: "Matt", age: 32, social: Social(twitter: "@mattcomi"))
print(matt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment