summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast/leaf.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-02-16 20:15:41 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-02-16 20:15:41 +0000
commit1ebb416c4574b28bf56764675714ec66ed199010 (patch)
treef7cfd432048387cae12401f3642278e0897b6cc2 /lib/puppet/parser/ast/leaf.rb
parent1fdb96266e2d1a083e1ecc76c5ae136ba73f2999 (diff)
downloadpuppet-1ebb416c4574b28bf56764675714ec66ed199010.tar.gz
puppet-1ebb416c4574b28bf56764675714ec66ed199010.tar.xz
puppet-1ebb416c4574b28bf56764675714ec66ed199010.zip
Adding single-quote syntactical element
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@923 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/ast/leaf.rb')
-rw-r--r--lib/puppet/parser/ast/leaf.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/puppet/parser/ast/leaf.rb b/lib/puppet/parser/ast/leaf.rb
index d25527864..5d70460ae 100644
--- a/lib/puppet/parser/ast/leaf.rb
+++ b/lib/puppet/parser/ast/leaf.rb
@@ -48,7 +48,15 @@ class Puppet::Parser::AST
return scope.strinterp(@value)
end
end
- #---------------------------------------------------------------
+
+ # The base string class.
+ class FlatString < AST::Leaf
+ # Interpolate the string looking for variables, and then return
+ # the result.
+ def evaluate(scope)
+ return @value
+ end
+ end
# The 'default' option on case statements and selectors.
class Default < AST::Leaf; end