summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/MarkdownBook/Document.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/MarkdownBook/Document.pm b/scripts/MarkdownBook/Document.pm
index 9bb98c5..575ce16 100644
--- a/scripts/MarkdownBook/Document.pm
+++ b/scripts/MarkdownBook/Document.pm
@@ -77,6 +77,13 @@ sub file_path
return $self->{'book'}->dir() . '/' . $self->{'file'};
}
+sub id
+{
+ my ($self) = @_;
+
+ return $self->{'id'};
+}
+
sub title
{
my ($self, $title) = @_;