Class: Hocon::Impl::ResolveSource::ResultWithPath

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_rootObject (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

#resultObject (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_sObject



276
277
278
# File 'lib/hocon/impl/resolve_source.rb', line 276

def to_s
  "ResultWithPath(result=#{@result}, pathFromRoot=#{@path_from_root})"
end