Class: Puppet::Parameter::Value Private

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/parameter/value.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Note:

this class should be used via the api methods in Puppet::Parameter and Puppet::Property

Describes an acceptable value for a parameter or property. An acceptable value is either specified as a literal value or a regular expression.

Instance Method Summary (collapse)

Instance Method Details

- (Object) alias(name)  private

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Adds an alias for this value. Makes the given name be an alias for this acceptable value.

Parameters:

  • name (Symbol)

    the additonal alias this value should be known as



17
18
# File 'lib/puppet/parameter/value.rb', line 17

def alias(name)
@aliases << convert(name)