1 # API Notation Syntax for Atom
3 This is a grammar for api notation, a simple notation I've been using for
4 annotating module APIs in specs and other documents.
10 ## API Notation Reference
12 The most recent reference as of now is in this [gist][api-reference], so
13 check that to be sure. But here's a reproduction of the notation.
16 NameOfClass.WithPossibleNamespace
19 ~> listened events (socket)
20 +> listened events (class/module)
21 -> listened events (instance)
22 <~ dispatched events (socket)
23 <+ dispatched events(class/module)
24 <- dispatched events (instance)
34 Recommended order: class first, then sockets, then instance. Internally:
35 Properties, events, methods.
37 // Anything after two forward slashes is a comment
40 ## How does it look like?
44 ![Like this.][api-example]
46 [api-reference]: https://gist.github.com/benbeltran/4694c46fcec131468e34
47 [api-example]: https://i.imgur.com/5WXuf4u.png