lib/puppet/pops/model/factory.rb
# Records the origin file of an element
# Does nothing if file is nil.
#
# @param file [String,nil] the file/path to the origin, may contain URI scheme of file: or some other URI scheme
# @returns [Factory] returns self
#
Records the origin file of an element
Does nothing if file is nil.
Records the origin file of an element Does nothing if file is nil .
def record_origin(file)
    return self unless file
    Puppet::Pops::Adapters::OriginAdapter.adapt(current) do |a|
       a.origin = file
    end
    self
  end
def record_origin ( file ) return self unless file Puppet :: Pops :: Adapters :: OriginAdapter . adapt ( current ) do | a | a . origin = file end self end
Records the origin file of an element
Does nothing if file is nil.
Records the origin file of an element Does nothing if file is nil .
[Factory] returns self
[ Factory ] returns self
file
the file/path to the origin, may contain URI scheme of file: or some other URI scheme
the file / path to the origin may contain URI scheme of file : or some other URI scheme