Class Puppet::Parser::AST::CaseOpt
In: lib/puppet/parser/ast/caseopt.rb
Parent: AST::Branch

Each individual option in a case statement.

Methods

default?   each   eachopt   eachvalue   evaluate  

Attributes

statements  [RW] 
value  [RW] 

Public Instance methods

Are we the default option?

CaseOpt is a bit special — we just want the value first, so that CaseStatement can compare, and then it will selectively decide whether to fully evaluate this option

You can specify a list of values; return each in turn.

Evaluate the actual statements; this only gets called if our option matched.

[Validate]