| 1 | # Copyrights 2003-2015 by [Mark Overmeer]. | ||
| 2 | # For other contributors see ChangeLog. | ||
| 3 | # See the manual pages for details on the licensing terms. | ||
| 4 | # Pod stripped from pm file by OODoc 2.01. | ||
| 5 | |||
| 6 | package OODoc::Text::Default; | ||
| 7 | use vars '$VERSION'; | ||
| 8 | $VERSION = '2.01'; | ||
| 9 | |||
| 10 | use base 'OODoc::Text'; | ||
| 11 | |||
| 12 | use strict; | ||
| 13 | use warnings; | ||
| 14 | |||
| 15 | use Log::Report 'oodoc'; | ||
| 16 | |||
| 17 | |||
| 18 | sub init($) | ||
| 19 | { my ($self, $args) = @_; | ||
| 20 | $args->{type} ||= 'Default'; | ||
| 21 | $args->{container} = delete $args->{subroutine} or panic; | ||
| 22 | |||
| 23 | $self->SUPER::init($args) | ||
| 24 | or return; | ||
| 25 | |||
| 26 | $self->{OTD_value} = delete $args->{value}; | ||
| 27 | defined $self->{OTD_value} or panic; | ||
| 28 | |||
| 29 | $self; | ||
| 30 | } | ||
| 31 | |||
| 32 | #------------------------------------------- | ||
| 33 | |||
| 34 | |||
| 35 | sub subroutine() { shift->container } | ||
| 36 | |||
| 37 | |||
| 38 | sub value() { shift->{OTD_value} } | ||
| 39 | |||
| 40 | 1; |