nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7efcac4
)
lib/template: fix init with signature warning
author
Alexandre Terrasa
<alexandre@moz-code.org>
Wed, 20 Apr 2016 06:33:32 +0000
(
02:33
-0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Wed, 20 Apr 2016 22:40:50 +0000
(18:40 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
lib/template/macro.nit
patch
|
blob
|
history
diff --git
a/lib/template/macro.nit
b/lib/template/macro.nit
index
1f53cdf
..
d0bc77d
100644
(file)
--- a/
lib/template/macro.nit
+++ b/
lib/template/macro.nit
@@
-105,7
+105,7
@@
class TemplateString
super Template
# Template original text.
- private var tpl_text: String
+ var tpl_text: String
# Macros contained in the template file.
private var macros = new HashMap[String, Array[TemplateMacro]]
@@
-127,8
+127,7
@@
class TemplateString
#
# var tpl = new TemplateString("Hello %NAME%!")
# assert tpl.write_to_string == "Hello %NAME%!"
- init(text: String) do
- self.tpl_text = text
+ init do
parse
end