Class: Puppet::Pops::Lookup::ExplainMergeSource Private
- Inherits:
-
ExplainNode
- Object
- ExplainNode
- Puppet::Pops::Lookup::ExplainMergeSource
- Defined in:
- lib/puppet/pops/lookup/explainer.rb
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.
Instance Attribute Summary collapse
- #merge_source ⇒ Object readonly private
Instance Method Summary collapse
- #dump_on(io, indent, first_indent) ⇒ Object private
-
#initialize(merge_source) ⇒ ExplainMergeSource
constructor
private
A new instance of ExplainMergeSource.
- #to_hash ⇒ Object private
- #type ⇒ Object private
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.
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_source ⇒ Object (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.
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.
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_hash ⇒ 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.
203 204 205 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 203 def to_hash { :type => type, :merge_source => merge_source } end |
#type ⇒ 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.
207 208 209 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 207 def type :merge_source end |