diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-16 20:15:41 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-16 20:15:41 +0000 |
commit | 1ebb416c4574b28bf56764675714ec66ed199010 (patch) | |
tree | f7cfd432048387cae12401f3642278e0897b6cc2 /lib/puppet/parser/ast/leaf.rb | |
parent | 1fdb96266e2d1a083e1ecc76c5ae136ba73f2999 (diff) | |
download | puppet-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.rb | 10 |
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 |