class Puppet::Pops::Lookup::ResolvedLocation

Class that keeps track of the original location (as it appears in the declaration, before interpolation), and the fully resolved location, and whether or not the resolved location exists.

@api private

Attributes

location[R]
original_location[R]

Public Class Methods

new(original_location, location, exist) click to toggle source

@param original_location [String] location as found in declaration. May contain interpolation expressions @param location [Pathname,URI] the expanded location @param exist [Boolean] `true` if the location is assumed to exist @api public

   # File lib/puppet/pops/lookup/location_resolver.rb
17 def initialize(original_location, location, exist)
18   @original_location = original_location
19   @location = location
20   @exist = exist
21 end

Public Instance Methods

exist?() click to toggle source

@return [Boolean] `true` if the location is assumed to exist @api public

   # File lib/puppet/pops/lookup/location_resolver.rb
25 def exist?
26   @exist
27 end
to_s() click to toggle source

@return the resolved location as a string

   # File lib/puppet/pops/lookup/location_resolver.rb
30 def to_s
31   @location.to_s
32 end