modella: update formatting

This commit is contained in:
Rico Sta. Cruz 2017-10-11 15:51:59 +08:00
parent 212b75647d
commit f00d5dfa9e
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 5 additions and 4 deletions

View File

@ -52,6 +52,9 @@ user
```coffeescript
Model.emit('event', [data...])
```
```coffeescript
record.emit('event', [data...])
```
@ -100,18 +103,16 @@ user
```coffeescript
MyPlugin = ->
return (Model) ->
```
```coffeescript
Model.method = ...
Model.prototype.method = ...
Model.attr(...)
```
```coffeescript
Model
```
A plugin is a function that returns a model decorator (ie, a function that takes in a model and returns a model).
### Memory
```coffeescript