Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace _save_pages() with _transform()
_save_pages() is a Pod::Simple::Search method which takes two specific arguments. From the point of view of making Pod-Html OO, it was problematic because (a) it used a variable ($Podroot) defined outside of its scope and (b) it assigned to a variable (%Pages) defined outside of its scope. It was therefore resistant to encapsulation. Experimentation showed that if we use the return value of Pod::Simple::Search::survey(), we could parse that hashref using what was the guts of _save_pages() and assign explicitly to %Pages. TODO: Move %Pages within the Pod::Html object. Handle $object properly. Signed-off-by: James E Keenan <jkeenan@cpan.org>
- Loading branch information
Showing
1 changed file
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters