Goo::TemplateProfileOption - Store individual options in the profile


Goo documentation Contained in the Goo distribution.

Index


Code Index:

NAME

Top

Goo::TemplateProfileOption - Store individual options in the profile

SYNOPSIS

Top

use Goo::TemplateProfileOption;

DESCRIPTION

Top

METHODS

Top

new

construct a ProfileOption

do

the action jumps to the first token found inside the Thing

AUTHOR

Top

Nigel Hamilton <nigel@trexy.com>

SEE ALSO

Top


Goo documentation Contained in the Goo distribution.

#!/usr/bin/perl

package Goo::TemplateProfileOption;

###############################################################################
# Nigel Hamilton
#
# Copyright Nigel Hamilton 2005
# All Rights Reserved
#
# Author:       Nigel Hamilton
# Filename:     Goo::TemplateProfileOption.pm
# Description:  Store individual options in the profile
#
# Date          Change
# ----------------------------------------------------------------------------
# 11/08/2005    Added method: test
#
##############################################################################

use strict;

use Goo::ProfileOption;

use base qw(Goo::ProfileOption);


##############################################################################
#
# new - construct a ProfileOption
#
##############################################################################

sub new {

    my ($class, $params) = @_;

    my $this = $class->SUPER::new($params);

    $this->{thing} = $params->{thing};

    return $this;
}


##############################################################################
#
# do - carry out the action! - the action should be to jump to the first token
#
##############################################################################

sub do {

    my ($this, $thing) = @_;

    $thing->do_action("J", $this->{text});

}

1;


__END__