diff options
| author | fukachan <fukachan> | 2004-04-18 11:14:34 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2004-04-18 11:14:34 +0000 |
| commit | 858a5204adf1ff056b558767d5bf84f0dcee9192 (patch) | |
| tree | 34854f8f50129f8794eb78aa8c0e188e719e7010 /fml/lib/FML/Restriction | |
| parent | a4b0c560f2163a3de05dbe9b222f3c630de3fe02 (diff) | |
| download | fml8-858a5204adf1ff056b558767d5bf84f0dcee9192.tar.gz fml8-858a5204adf1ff056b558767d5bf84f0dcee9192.tar.bz2 fml8-858a5204adf1ff056b558767d5bf84f0dcee9192.zip | |
remove regexp() method, which not used.
fix description.
Diffstat (limited to 'fml/lib/FML/Restriction')
| -rw-r--r-- | fml/lib/FML/Restriction/Base.pm | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/fml/lib/FML/Restriction/Base.pm b/fml/lib/FML/Restriction/Base.pm index 76a265e8..8d4cb44c 100644 --- a/fml/lib/FML/Restriction/Base.pm +++ b/fml/lib/FML/Restriction/Base.pm @@ -3,7 +3,7 @@ # Copyright (C) 2001,2002,2003,2004 Ken'ichi Fukamachi # All rights reserved. # -# $FML: Base.pm,v 1.28 2004/02/04 14:41:47 fukachan Exp $ +# $FML: Base.pm,v 1.29 2004/03/04 12:21:34 fukachan Exp $ # package FML::Restriction::Base; @@ -19,15 +19,7 @@ FML::Restriction::Base -- define safe data representations =head1 SYNOPSIS use FML::Restriction::Base; - my $safe = new FML::Restriction::Base; - my $regexp = $safe->regexp( 'type' ); - - if ($data =~ /^($regexp)$/) { - # o.k. do something ... - } - -or - + my $safe = new FML::Restriction::Base; if ($safe->regexp_match('address', $data)) { # o.k. do something ... } @@ -156,30 +148,6 @@ sub basic_variable } -=head2 regexp( class ) - -return the allowed regexp for C<class>. - -=cut - - -# Descriptions: return allowed regexp for $class. -# Arguments: OBJ($self) STR($class) -# Side Effects: none -# Return Value: STR or UNDEF -sub regexp -{ - my ($self, $class) = @_; - - if (defined $basic_variable{ $class }) { - return $basic_variable{ $class }; - } - else { - return undef; - } -} - - =head2 regexp_match( class, string ) check if C<string> matches regexp specified by C<class>. |
