diff options
author | Zader Zheng <yumaoshu@gmail.com> | 2016-02-28 12:34:26 +0800 |
---|---|---|
committer | Zader Zheng <yumaoshu@gmail.com> | 2016-02-28 12:34:26 +0800 |
commit | a3a606ddc91077064e8799c4bf4efe862f38e314 (patch) | |
tree | 2628dbd0eccb28836a0e23f9e3c1da7146cfc7e3 /nerv/doc/nerv_class.md | |
parent | 550680eacd00555817df19d2b59a20a92df77c42 (diff) |
change to standard markdown title syntax to fit GitLab doc preview
Diffstat (limited to 'nerv/doc/nerv_class.md')
-rw-r--r-- | nerv/doc/nerv_class.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nerv/doc/nerv_class.md b/nerv/doc/nerv_class.md index 99f63e7..8314b12 100644 --- a/nerv/doc/nerv_class.md +++ b/nerv/doc/nerv_class.md @@ -1,10 +1,10 @@ -#The Nerv OOP# +# The Nerv OOP Part of the [Nerv](../README.md) toolkit. -##Methods## +## Methods * __metatable mt, metatable mpt = nerv.class(string tname, string parenttname)__ This method is used to create a class by the name `tname`, which inherits `parenttname` in __Nerv__, then you create a new instance of this class by calling `obj=tname(...)`. The `tname.__init(...)` method(if defined) will be called in the constructing. The metatable of the class and its parent class will be returned. -##Examples## +## Examples * This example implements a simple `nerv.Counter` class which is inherited by `nerv.BetterCounter`. ``` @@ -33,4 +33,4 @@ c1 = nerv.Counter(1) print(c1.c) bc1 = nerv.BetterCounter(1, 1) print(bc1.c, bc1.bc) -```
\ No newline at end of file +``` |