Method: Config#with_value
- Defined in:
- lib/hocon/config.rb
#with_value(path, value) ⇒ Object
Returns a Config based on this one, but with the given path set to the given value. Does not modify this instance (since it’s immutable). If the path already has a value, that value is replaced. To remove a value, use withoutPath(). <p> Note that path expressions have a syntax and sometimes require quoting (see ConfigUtil#joinPath and ConfigUtil#splitPath).
1006 1007 1008 |
# File 'lib/hocon/config.rb', line 1006 def with_value(path, value) raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of `Config` must implement `with_value` (#{self.class})" end |