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.
8
9
10
|
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 8
def initialize(key)
@key = key
end
|
Instance Attribute Details
6
7
8
|
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 6
def key
@key
end
|
Instance Method Details
16
17
18
|
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 16
def ==(o)
self.class == o.class && key == o.key
end
|
#eql?(o) ⇒ Boolean
20
21
22
|
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 20
def eql?(o)
self == o
end
|
12
13
14
|
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 12
def hash
key.hash
end
|