Skip to content

Instantly share code, notes, and snippets.

@Nikoloutsos
Created December 8, 2021 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nikoloutsos/011a03dbf079c9123b967c218d114abf to your computer and use it in GitHub Desktop.
Save Nikoloutsos/011a03dbf079c9123b967c218d114abf to your computer and use it in GitHub Desktop.
{% for type in types.protocols where type|annotated:"MyFirstSpell" %}
class MyFirstDayAtMagicalSchool {
{% for method in type.allMethods %}
//MARK: {{method.shortName}} transformed to frog-prefix
func frog_{{method.name}} {}
{%endfor%}
}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment