Server IP : 66.29.132.122 / Your IP : 3.136.18.218 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.3.1/lib/hocon/ |
Upload File : |
# encoding: utf-8 require 'hocon' require 'hocon/config_error' # # An opaque handle to something that can be parsed, obtained from # {@link ConfigIncludeContext}. # # <p> # <em>Do not implement this interface</em>; it should only be implemented by # the config library. Arbitrary implementations will not work because the # library internals assume a specific concrete implementation. Also, this # interface is likely to grow new methods over time, so third-party # implementations will break. # module Hocon::ConfigParseable # # Parse whatever it is. The options should come from # {@link ConfigParseable#options options()} but you could tweak them if you # like. # # @param options # parse options, should be based on the ones from # {@link ConfigParseable#options options()} # @return the parsed object # def parse(options) raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of `ConfigParseable` must implement `parse` (#{self.class})" end # # Returns a {@link ConfigOrigin} describing the origin of the parseable # item. # @return the origin of the parseable item # def origin raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of `ConfigParseable` must implement `origin` (#{self.class})" end # # Get the initial options, which can be modified then passed to parse(). # These options will have the right description, includer, and other # parameters already set up. # @return the initial options # def options raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of `ConfigParseable` must implement `options` (#{self.class})" end end