Class: Puppet::Pops::Types::TypePathElement
- Inherits:
-
Object
- Object
- Puppet::Pops::Types::TypePathElement
show all
- Defined in:
- lib/puppet/pops/types/type_mismatch_describer.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
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
5
6
7
|
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 5
def key
@key
end
|
Instance Method Details
#==(o) ⇒ Object
Also known as:
eql?
15
16
17
|
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 15
def ==(o)
self.class == o.class && key == o.key
end
|
11
12
13
|
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 11
def hash
key.hash
end
|