diff options
| author | fukachan <fukachan> | 2002-02-24 08:27:01 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-02-24 08:27:01 +0000 |
| commit | 94e4df3d50287abc95530d30b823990490ffca67 (patch) | |
| tree | 75e68a41baca4ceac5c7c072c58afe66ddad46e1 | |
| parent | 9fa8715f9e8c91fe1fe0e8a20a9e62aab94337c0 (diff) | |
| download | fml8-94e4df3d50287abc95530d30b823990490ffca67.tar.gz fml8-94e4df3d50287abc95530d30b823990490ffca67.tar.bz2 fml8-94e4df3d50287abc95530d30b823990490ffca67.zip | |
set(key, value) and update() informs FML::Config to expand variables.
| -rw-r--r-- | fml/lib/FML/Config.pm | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/fml/lib/FML/Config.pm b/fml/lib/FML/Config.pm index b13fa5be..4b830155 100644 --- a/fml/lib/FML/Config.pm +++ b/fml/lib/FML/Config.pm @@ -1,7 +1,7 @@ #-*- perl -*- # Copyright (C) 2000,2001,2002 Ken'ichi Fukamachi # -# $FML: Config.pm,v 1.54 2002/02/17 09:31:10 fukachan Exp $ +# $FML: Config.pm,v 1.55 2002/02/17 13:31:29 fukachan Exp $ # package FML::Config; @@ -163,6 +163,7 @@ sub get # Descriptions: set vaule for $key +# flag on we need to re-evaludate variable expansion. # Arguments: OBJ($self) STR($key) # Side Effects: update internal area # Return Value: STR @@ -170,9 +171,25 @@ sub set { my ($self, $key, $value) = @_; $self->{ $key } = $value; + $need_expansion_variables = 1; } +# Descriptions: inform we need to expand variables again. +# Arguments: OBJ($self) +# Side Effects: update internal area +# Return Value: NUM(1) +sub update +{ + my ($self) = @_; + $need_expansion_variables = 1; +} + + +# Descriptions: ? ( obsolete ?) +# Arguments: OBJ($self) STR($key) +# Side Effects: update internal area +# Return Value: NUM sub regist { my ($self, $key) = @_; |
