Class: Hocon::Impl::ResolveSource::ValueWithPath
- Inherits:
-
Object
- Object
- Hocon::Impl::ResolveSource::ValueWithPath
- Defined in:
- lib/hocon/impl/resolve_source.rb
Overview
value is allowed to be null
Instance Attribute Summary collapse
-
#path_from_root ⇒ Object
readonly
Returns the value of attribute path_from_root.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, path_from_root) ⇒ ValueWithPath
constructor
A new instance of ValueWithPath.
- #to_s ⇒ Object
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_root ⇒ Object (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 |
#value ⇒ Object (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_s ⇒ Object
263 264 265 |
# File 'lib/hocon/impl/resolve_source.rb', line 263 def to_s "ValueWithPath(value=" + @value + ", pathFromRoot=" + @path_from_root + ")" end |