source: trunk/essentials/dev-lang/perl/lib/Pod/Perldoc/ToText.pm

Last change on this file was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 2.0 KB
Line 
1
2require 5;
3package Pod::Perldoc::ToText;
4use strict;
5use warnings;
6
7use base qw(Pod::Perldoc::BaseTo);
8
9sub is_pageable { 1 }
10sub write_with_binmode { 0 }
11sub output_extension { 'txt' }
12
13use Pod::Text ();
14
15sub alt { shift->_perldoc_elem('alt' , @_) }
16sub indent { shift->_perldoc_elem('indent' , @_) }
17sub loose { shift->_perldoc_elem('loose' , @_) }
18sub quotes { shift->_perldoc_elem('quotes' , @_) }
19sub sentence { shift->_perldoc_elem('sentence', @_) }
20sub width { shift->_perldoc_elem('width' , @_) }
21
22sub new { return bless {}, ref($_[0]) || $_[0] }
23
24sub parse_from_file {
25 my $self = shift;
26
27 my @options =
28 map {; $_, $self->{$_} }
29 grep !m/^_/s,
30 keys %$self