PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.3.1/lib/hocon/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : //opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.3.1/lib/hocon/config_util.rb |
require 'hocon/impl/config_impl_util'
# Contains static utility methods
class Hocon::ConfigUtil
#
# Quotes and escapes a string, as in the JSON specification.
#
# @param string
# a string
# @return the string quoted and escaped
#
def self.quote_string(string)
Hocon::Impl::ConfigImplUtil.render_json_string(string)
end
#
# Converts a list of keys to a path expression, by quoting the path
# elements as needed and then joining them separated by a period. A path
# expression is usable with a {@link Config}, while individual path
# elements are usable with a {@link ConfigObject}.
# <p>
# See the overview documentation for {@link Config} for more detail on path
# expressions vs. keys.
#
# @param elements
# the keys in the path
# @return a path expression
# @throws ConfigException
# if there are no elements
#
def self.join_path(*elements)
Hocon::Impl::ConfigImplUtil.join_path(*elements)
end
#
# Converts a list of strings to a path expression, by quoting the path
# elements as needed and then joining them separated by a period. A path
# expression is usable with a {@link Config}, while individual path
# elements are usable with a {@link ConfigObject}.
# <p>
# See the overview documentation for {@link Config} for more detail on path
# expressions vs. keys.
#
# @param elements
# the keys in the path
# @return a path expression
# @throws ConfigException
# if the list is empty
#
def self.join_path_from_list(elements)
self.join_path(*elements)
end
#
# Converts a path expression into a list of keys, by splitting on period
# and unquoting the individual path elements. A path expression is usable
# with a {@link Config}, while individual path elements are usable with a
# {@link ConfigObject}.
# <p>
# See the overview documentation for {@link Config} for more detail on path
# expressions vs. keys.
#
# @param path
# a path expression
# @return the individual keys in the path
# @throws ConfigException
# if the path expression is invalid
#
def self.split_path(path)
Hocon::Impl::ConfigImplUtil.split_path(path)
end
end