class Hocon::Impl::SimpleIncludeContext

Public Class Methods

new(parseable) click to toggle source
# File lib/hocon/impl/simple_include_context.rb, line 11
def initialize(parseable)
  @parseable = parseable
end

Public Instance Methods

parse_options() click to toggle source
# File lib/hocon/impl/simple_include_context.rb, line 34
def parse_options
  Hocon::Impl::SimpleIncluder.clear_for_include(@parseable.options)
end
relative_to(filename) click to toggle source
# File lib/hocon/impl/simple_include_context.rb, line 23
def relative_to(filename)
  if Hocon::Impl::ConfigImpl.trace_loads_enabled
    Hocon::Impl::ConfigImpl.trace("Looking for '#{filename}' relative to #{@parseable}")
  end
  if ! @parseable.nil?
    @parseable.relative_to(filename)
  else
    nil
  end
end
with_parseable(parseable) click to toggle source
# File lib/hocon/impl/simple_include_context.rb, line 15
def with_parseable(parseable)
  if parseable.equal?(@parseable)
    self
  else
    self.class.new(parseable)
  end
end