Class: Puppet::Pops::Types::TypePathElement Private
- Defined in:
- lib/puppet/pops/types/type_mismatch_describer.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.
Direct Known Subclasses
ArrayPathElement, EntryKeyPathElement, EntryValuePathElement, ParameterPathElement, ReturnTypeElement, SubjectPathElement, VariantPathElement
Instance Attribute Summary collapse
- #key ⇒ Object readonly private
Instance Method Summary collapse
- #==(o) ⇒ Object private
- #eql?(o) ⇒ Boolean private
- #hash ⇒ Object private
-
#initialize(key) ⇒ TypePathElement
constructor
private
A new instance of TypePathElement.
Constructor Details
#initialize(key) ⇒ TypePathElement
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 TypePathElement.
7 8 9 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 7 def initialize(key) @key = key end |
Instance Attribute Details
#key ⇒ 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.
5 6 7 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 5 def key @key end |
Instance Method Details
#==(o) ⇒ 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.
15 16 17 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 15 def ==(o) self.class == o.class && key == o.key end |
#eql?(o) ⇒ Boolean
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.
19 20 21 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 19 def eql?(o) self == o end |
#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.
11 12 13 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 11 def hash key.hash end |