Class: Hocon::Impl::ResolveSource::ResultWithPath
- Inherits:
-
Object
- Object
- Hocon::Impl::ResolveSource::ResultWithPath
- Defined in:
- lib/hocon/impl/resolve_source.rb
Instance Attribute Summary collapse
-
#path_from_root ⇒ Object
readonly
Returns the value of attribute path_from_root.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(result, path_from_root) ⇒ ResultWithPath
constructor
A new instance of ResultWithPath.
- #to_s ⇒ Object
Constructor Details
#initialize(result, path_from_root) ⇒ ResultWithPath
Returns a new instance of ResultWithPath.
271 272 273 274 |
# File 'lib/hocon/impl/resolve_source.rb', line 271 def initialize(result, path_from_root) @result = result @path_from_root = path_from_root end |
Instance Attribute Details
#path_from_root ⇒ Object (readonly)
Returns the value of attribute path_from_root.
269 270 271 |
# File 'lib/hocon/impl/resolve_source.rb', line 269 def path_from_root @path_from_root end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
269 270 271 |
# File 'lib/hocon/impl/resolve_source.rb', line 269 def result @result end |
Instance Method Details
#to_s ⇒ Object
276 277 278 |
# File 'lib/hocon/impl/resolve_source.rb', line 276 def to_s "ResultWithPath(result=#{@result}, pathFromRoot=#{@path_from_root})" end |