You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2016/02/11 13:08:00 UTC
[3/7] lucy git commit: Add POD for Lucy::Simple ctor
Add POD for Lucy::Simple ctor
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/bc7b8fc3
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/bc7b8fc3
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/bc7b8fc3
Branch: refs/heads/master
Commit: bc7b8fc3a279a99305c5063f5f001c869fafa44d
Parents: 2889932
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Tue Feb 9 16:23:52 2016 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Tue Feb 9 16:23:52 2016 +0100
----------------------------------------------------------------------
perl/buildlib/Lucy/Build/Binding/Misc.pm | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/bc7b8fc3/perl/buildlib/Lucy/Build/Binding/Misc.pm
----------------------------------------------------------------------
diff --git a/perl/buildlib/Lucy/Build/Binding/Misc.pm b/perl/buildlib/Lucy/Build/Binding/Misc.pm
index 0846021..8eac8ca 100644
--- a/perl/buildlib/Lucy/Build/Binding/Misc.pm
+++ b/perl/buildlib/Lucy/Build/Binding/Misc.pm
@@ -154,6 +154,12 @@ Later, search the index.
print "$hit->{title}\n",
}
END_SYNOPSIS
+ my $constructor = <<'END_CONSTRUCTOR';
+ my $lucy = Lucy::Simple->new(
+ path => '/path/to/index/',
+ language => 'en',
+ );
+END_CONSTRUCTOR
my $add_doc_pod = <<'END_ADD_DOC_POD';
=head2 add_doc
@@ -169,6 +175,7 @@ with field names as keys and content as values.
END_ADD_DOC_POD
$pod_spec->set_synopsis($synopsis);
+ $pod_spec->add_constructor( sample => $constructor );
# Override is necessary because there's no standard way to explain
# hash/hashref across multiple host languages.
$pod_spec->add_method(