CGI::Lazy::Utility - CGI::Lazy::Utility documentation


CGI-Lazy documentation Contained in the CGI-Lazy distribution.

Index


Code Index:

LEGAL

Top

NAME

Top

CGI::Lazy::Utility

SYNOPSIS

Top

	use CGI::Lazy;

	my $q = CGI::Lazy->new('/path/to/config/file');

	my $t = $q->util->debug;

DESCRIPTION

Top

Wrapper object for utility functions. Primarily serves as a means to access more specific utility objects, while not polluting the namespace of the parent.

METHODS

Top

debug ()

Debugging object. See CGI::Lazy::Utility::Debug for details.

q

Returns CGI::Lazy object

new (lazy)

Constructor.

lazy

CGI::Lazy object.


CGI-Lazy documentation Contained in the CGI-Lazy distribution.

package CGI::Lazy::Utility;

use strict;

use CGI::Lazy::Globals;
use CGI::Lazy::Utility::Debug;

#--------------------------------------------------------------
sub debug {
	my $self = shift;

	return CGI::Lazy::Utility::Debug->new($self->q);
}

#--------------------------------------------------------------
sub q {
	my $self = shift;

	return $self->{_q};
}

#--------------------------------------------------------------
sub new {
	my $class = shift;
	my $q = shift;

	return bless {_q => $q}, $class;
}

1

__END__