Method: Hocon::Impl::SimpleIncluder::RelativeNameSource#name_to_parseable

Defined in:
lib/hocon/impl/simple_includer.rb

#name_to_parseable(name, options) ⇒ Object



114
115
116
117
118
119
120
121
122
# File 'lib/hocon/impl/simple_includer.rb', line 114

def name_to_parseable(name, options)
  p = @context.relative_to(name)
  if p.nil?
    # avoid returning nil
    Hocon::Impl::Parseable.new_not_found(name, "include was not found: '#{name}'", options)
  else
    p
  end
end