Class: Hocon::Impl::ResolveSource::ValueWithPath

Inherits:
Object
  • Object
show all
Defined in:
lib/hocon/impl/resolve_source.rb

Overview

value is allowed to be null

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, path_from_root) ⇒ ValueWithPath

Returns a new instance of ValueWithPath.



258
259
260
261
# File 'lib/hocon/impl/resolve_source.rb', line 258

def initialize(value, path_from_root)
  @value = value
  @path_from_root = path_from_root
end

Instance Attribute Details

#path_from_rootObject (readonly)

Returns the value of attribute path_from_root.



256
257
258
# File 'lib/hocon/impl/resolve_source.rb', line 256

def path_from_root
  @path_from_root
end

#valueObject (readonly)

Returns the value of attribute value.



256
257
258
# File 'lib/hocon/impl/resolve_source.rb', line 256

def value
  @value
end

Instance Method Details

#to_sObject



263
264
265
# File 'lib/hocon/impl/resolve_source.rb', line 263

def to_s
  "ValueWithPath(value=" + @value + ", pathFromRoot=" + @path_from_root + ")"
end