From 9a90b5ef3d8f9572838700fa27ec568d29f76d64 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 10 Aug 2012 12:34:47 -0400 Subject: Standardize constructor code style. --- diff --git a/scripts/MarkdownBook/Book.pm b/scripts/MarkdownBook/Book.pm index 547a4f0..a0cb49e 100644 --- a/scripts/MarkdownBook/Book.pm +++ b/scripts/MarkdownBook/Book.pm @@ -26,7 +26,8 @@ sub new $class = ref($class) || $class; $self = {}; - bless($self,$class); + bless($self, $class); + $self->{'format'} = $format; $self->{'dir'} = $dir; $self->{'docs'} = []; diff --git a/scripts/MarkdownBook/Book/HTML.pm b/scripts/MarkdownBook/Book/HTML.pm index 67acc34..8577170 100644 --- a/scripts/MarkdownBook/Book/HTML.pm +++ b/scripts/MarkdownBook/Book/HTML.pm @@ -32,7 +32,7 @@ sub new $class = ref($class) || $class; $self = {}; - bless($self,$class); + bless($self, $class); $self = $self->SUPER::new('HTML', @args); diff --git a/scripts/MarkdownBook/Document.pm b/scripts/MarkdownBook/Document.pm index 249cdf6..ad6fc0e 100644 --- a/scripts/MarkdownBook/Document.pm +++ b/scripts/MarkdownBook/Document.pm @@ -28,7 +28,8 @@ sub new $class = ref($class) || $class; $self = {}; - bless($self,$class); + bless($self, $class); + $self->{'book'} = $book; $self->{'file'} = $file; $self->{'id'} = $id; diff --git a/scripts/MarkdownBook/Document/Index.pm b/scripts/MarkdownBook/Document/Index.pm index e005396..df94305 100644 --- a/scripts/MarkdownBook/Document/Index.pm +++ b/scripts/MarkdownBook/Document/Index.pm @@ -29,7 +29,8 @@ sub new $class = ref($class) || $class; $self = {}; - bless($self,$class); + bless($self, $class); + $self->{'book'} = $book; $self->{'file'} = 'index'; $self->{'title'} = $book->title(); -- cgit v0.9.1