Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PO-canSomething.swift
extension Creature {
var canFly: Bool { return self is Flying }
var canBurn: Bool { return self is Burning }
var canWalk: Bool { return self is Walking }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment