Class: Puppet::Parser::AST::String

Inherits:
Leaf show all
Defined in:
lib/puppet/parser/ast/leaf.rb

Overview

The base string class.

Instance Attribute Summary

Attributes inherited from Leaf

#type, #value

Instance Method Summary collapse

Methods inherited from Leaf

#match

Instance Method Details

#evaluate(scope) ⇒ Object



37
38
39
# File 'lib/puppet/parser/ast/leaf.rb', line 37

def evaluate(scope)
  @value.dup
end

#to_sObject



41
42
43
# File 'lib/puppet/parser/ast/leaf.rb', line 41

def to_s
  @value.inspect
end