Class: Puppet::Pops::Lookup::ExplainMergeSource Private

Inherits:
ExplainNode show all
Defined in:
lib/puppet/pops/lookup/explainer.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ExplainNode

#branches, #dump_texts, #explain, #inspect, #text, #to_s

Constructor Details

#initialize(merge_source) ⇒ ExplainMergeSource

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ExplainMergeSource.

API:

  • private



195
196
197
# File 'lib/puppet/pops/lookup/explainer.rb', line 195

def initialize(merge_source)
  @merge_source = merge_source
end

Instance Attribute Details

#merge_sourceObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



193
194
195
# File 'lib/puppet/pops/lookup/explainer.rb', line 193

def merge_source
  @merge_source
end

Instance Method Details

#dump_on(io, indent, first_indent) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



199
200
201
# File 'lib/puppet/pops/lookup/explainer.rb', line 199

def dump_on(io, indent, first_indent)
  io << first_indent << 'Using merge options from "' << merge_source << "\" hash\n"
end

#to_hashObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



203
204
205
# File 'lib/puppet/pops/lookup/explainer.rb', line 203

def to_hash
  { :type => type, :merge_source => merge_source }
end

#typeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



207
208
209
# File 'lib/puppet/pops/lookup/explainer.rb', line 207

def type
  :merge_source
end