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
18 def initialize(original_location, location, exist)
19   @original_location = original_location
20   @location = location
21   @exist = exist
22 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
26 def exist?
27   @exist
28 end
to_s() click to toggle source

@return the resolved location as a string

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