Class: Statement::SimpleParameter

Inherits:
Parameter
  • Object
show all
Defined in:
lib/puppet/parser/functions/statement.rb

Overview

like the file name in a file source

Instance Method Summary collapse

Constructor Details

#initialize(value = '') ⇒ SimpleParameter

Returns a new instance of SimpleParameter.



39
40
41
# File 'lib/puppet/parser/functions/statement.rb', line 39

def initialize(value='')
    @value = value
end

Instance Method Details

#buildObject



47
48
49
# File 'lib/puppet/parser/functions/statement.rb', line 47

def build
    return Statement.line(@value)
end

#value=(value) ⇒ Object



43
44
45
# File 'lib/puppet/parser/functions/statement.rb', line 43

def value=(value)
    @value = value
end