Class: ChefCLI::Policyfile::AttributeMergeChecker::Leaf Private

Inherits:
Object
  • Object
show all
Defined in:
lib/chef-cli/policyfile/attribute_merge_checker.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.

A Leaf is used to mark an individual attribute that has already been provided, along with its value and by who

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provided_by, val) ⇒ Leaf

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 Leaf.



43
44
45
46
# File 'lib/chef-cli/policyfile/attribute_merge_checker.rb', line 43

def initialize(provided_by, val)
  @provided_by = provided_by
  @val = val
end

Instance Attribute Details

#provided_byObject (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.



40
41
42
# File 'lib/chef-cli/policyfile/attribute_merge_checker.rb', line 40

def provided_by
  @provided_by
end

#valObject (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.



41
42
43
# File 'lib/chef-cli/policyfile/attribute_merge_checker.rb', line 41

def val
  @val
end