X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FZeal%2FDocument.pm;h=9a533fb3df55ed705aa3a28e0349ca5bc532402e;hb=refs%2Ftags%2F0.001001;hp=f80bad8d35f5868d91050bc3a37d9f8485d8cf26;hpb=c1c9c8170efd62dddd10a2c8e5defd545e48c42b;p=zeal.git
diff --git a/lib/Zeal/Document.pm b/lib/Zeal/Document.pm
index f80bad8..9a533fb 100644
--- a/lib/Zeal/Document.pm
+++ b/lib/Zeal/Document.pm
@@ -4,10 +4,10 @@ use 5.014000;
use strict;
use warnings;
-our $VERSION = '0.000_001';
+our $VERSION = '0.001001';
use parent qw/Class::Accessor::Fast/;
-__PACKAGE__->mk_accessors(qw/id name type path docset/);
+__PACKAGE__->mk_accessors(qw/id name type path anchor docset/);
sub fetch {
my ($self) = @_;
@@ -26,6 +26,11 @@ Zeal::Document - Class representing a Dash/Zeal document
=head1 SYNOPSIS
use Zeal::Document;
+ my $doc = $ds->query('perlsec'); # $ds is a Zeal::Docset instance
+ say $doc->name; # perlsec
+ say $doc->type; # Module
+ say $doc->path; # perldoc-html/perlsec.html
+ my $html = $doc->fetch; # $html is now the HTML documentation for perlsec
=head1 DESCRIPTION
@@ -55,6 +60,10 @@ The path of this document, relative to
F. This can also be a HTTP
URL.
+=item $doc->B
+
+The URL anchor/fragment identifier of this document.
+
=item $doc->B
The HTML content of this document, retrieved from the file system or
@@ -72,7 +81,7 @@ Marius Gavrilescu, Emarius@ieval.roE
=head1 COPYRIGHT AND LICENSE
-Copyright (C) 2014 by Marius Gavrilescu
+Copyright (C) 2014-2015 by Marius Gavrilescu
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.20.1 or,