summaryrefslogtreecommitdiff
path: root/lib/WebCoso/Doc/Base.pm
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2015-09-05 16:35:10 +0100
committerdakkar <dakkar@thenautilus.net>2015-09-05 16:35:10 +0100
commitcd8cecc2a64e623d1342b7b37aa1506ad40c3a6e (patch)
tree5c1981e36755928b189edbac48629d280bef480c /lib/WebCoso/Doc/Base.pm
parentfirst maker test (diff)
downloadWebCoso-p6-cd8cecc2a64e623d1342b7b37aa1506ad40c3a6e.tar.gz
WebCoso-p6-cd8cecc2a64e623d1342b7b37aa1506ad40c3a6e.tar.bz2
WebCoso-p6-cd8cecc2a64e623d1342b7b37aa1506ad40c3a6e.zip
deps test fails
Diffstat (limited to 'lib/WebCoso/Doc/Base.pm')
-rw-r--r--lib/WebCoso/Doc/Base.pm22
1 files changed, 16 insertions, 6 deletions
diff --git a/lib/WebCoso/Doc/Base.pm b/lib/WebCoso/Doc/Base.pm
index 9ceefa1..46afce8 100644
--- a/lib/WebCoso/Doc/Base.pm
+++ b/lib/WebCoso/Doc/Base.pm
@@ -4,16 +4,26 @@ use WebCoso::Maker::RST;
use WebCoso::Maker::XHTML;
use WebCoso::Maker::HTML;
-role WebCoso::Doc::Base[$basename] {
+class WebCoso::Doc::Base {
has $!wc;
has $.dir;
- has $.tt = WebCoso::Maker::TT.new(:$basename,:$!dir,:$!wc);
- has $.rst = WebCoso::Maker::RST.new(:$basename,:$!dir,:$!wc);
- has $.xhtml = WebCoso::Maker::XHTML.new(:$basename,:$!dir,:$!wc);
- has $.html = WebCoso::Maker::HTML.new(:$basename,:$!dir,:$!wc);
+ has $.tt;
+ has $.rst;
+ has $.xhtml;
+ has $.html;
+ method basename() { ... }
+
+ submethod BUILD(:$wc,:$dir) {
+ my $basename = self.basename;
+ $!tt = WebCoso::Maker::TT.new(:$basename,:$dir,:$wc);
+ $!rst = WebCoso::Maker::RST.new(:$basename,:$dir,:$wc);
+ $!xhtml = WebCoso::Maker::XHTML.new(:$basename,:$dir,:$wc);
+ $!html = WebCoso::Maker::HTML.new(:$basename,:$dir,:$wc);
+ }
+
method make() {
- .html.get-files();
+ $.html.get-files();
}
}