Sha256: 5f5d90990fe50d7e5cd232bb4cbc466780fca765ac25cde2a6b16258732c3107

Contents?: true

Size: 491 Bytes

Versions: 49

Compression:

Stored size: 491 Bytes

Contents

#
# value.rb
#
# Returns the internal form of a given value.
#
module Puppet::Parser::Functions
  newfunction(:value, :type => :rvalue, :doc => <<-EOS
This function returns the internal form of a given value.
    EOS
) do |args|
    
    value = nil
    CORL.run do
      raise(Puppet::ParseError, "value(): Must have a source value specified; " +
        "given (#{args.size} for 1)") if args.size < 1
      
      value = CORL::Util::Data.value(args[0])
    end
    return value
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
corl-0.5.18 lib/puppet/parser/functions/value.rb
corl-0.5.17 lib/puppet/parser/functions/value.rb
corl-0.5.16 lib/puppet/parser/functions/value.rb
corl-0.5.15 lib/puppet/parser/functions/value.rb
corl-0.5.14 lib/puppet/parser/functions/value.rb
corl-0.5.13 lib/puppet/parser/functions/value.rb
corl-0.5.12 lib/puppet/parser/functions/value.rb
corl-0.5.11 lib/puppet/parser/functions/value.rb
corl-0.5.10 lib/puppet/parser/functions/value.rb
corl-0.5.9 lib/puppet/parser/functions/value.rb
corl-0.5.8 lib/puppet/parser/functions/value.rb
corl-0.5.7 lib/puppet/parser/functions/value.rb
corl-0.5.6 lib/puppet/parser/functions/value.rb
corl-0.5.5 lib/puppet/parser/functions/value.rb
corl-0.5.4 lib/puppet/parser/functions/value.rb
corl-0.5.3 lib/puppet/parser/functions/value.rb
corl-0.5.2 lib/puppet/parser/functions/value.rb
corl-0.5.1 lib/puppet/parser/functions/value.rb
corl-0.5.0 lib/puppet/parser/functions/value.rb
corl-0.4.29 lib/puppet/parser/functions/value.rb