summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast/leaf.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-28 01:21:58 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-28 01:21:58 +0000
commit4df0738de2e93b8c0408561153543682aa1a3455 (patch)
treed657835c5496e1dca96aab0f1bbc3317bd743994 /lib/puppet/parser/ast/leaf.rb
parent0f16bf3c5b925f5656a5592b527ae56d92c662f9 (diff)
downloadpuppet-4df0738de2e93b8c0408561153543682aa1a3455.tar.gz
puppet-4df0738de2e93b8c0408561153543682aa1a3455.tar.xz
puppet-4df0738de2e93b8c0408561153543682aa1a3455.zip
Applying a modified form of the patch by cstorey from #523. The modifications were mostly around the fact that Strscan does not set $1 and its ilk.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2239 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/ast/leaf.rb')
-rw-r--r--lib/puppet/parser/ast/leaf.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/puppet/parser/ast/leaf.rb b/lib/puppet/parser/ast/leaf.rb
index 298c0168f..ed02c4eef 100644
--- a/lib/puppet/parser/ast/leaf.rb
+++ b/lib/puppet/parser/ast/leaf.rb
@@ -41,14 +41,12 @@ class Puppet::Parser::AST
# Interpolate the string looking for variables, and then return
# the result.
def evaluate(hash)
- return hash[:scope].strinterp(@value)
+ return hash[:scope].strinterp(@value, @file, @line)
end
end
- # The base string class.
+ # An uninterpreted string.
class FlatString < AST::Leaf
- # Interpolate the string looking for variables, and then return
- # the result.
def evaluate(hash)
return @value
end