Class Puppet::Parser::AST::Leaf
In: lib/puppet/parser/ast/leaf.rb
Parent: AST

The base class for all of the leaves of the parse trees. These basically just have types and values. Both of these parameters are simple values, not AST objects.

Methods

evaluate   to_s  

Attributes

type  [RW] 
value  [RW] 

Public Instance methods

Return our value.

[Source]

    # File lib/puppet/parser/ast/leaf.rb, line 9
 9:         def evaluate(scope)
10:             return @value
11:         end

[Source]

    # File lib/puppet/parser/ast/leaf.rb, line 13
13:         def to_s
14:             return @value
15:         end

[Validate]