class Hocon::Impl::SimpleIncluder::RelativeNameSource

Public Class Methods

new(context) click to toggle source
# File lib/hocon/impl/simple_includer.rb, line 109
def initialize(context)
  @context = context
end

Public Instance Methods

name_to_parseable(name, options) click to toggle source
# File lib/hocon/impl/simple_includer.rb, line 113
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