Class: Puppet::Pops::PN::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/pops/pn.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, value) ⇒ Entry

Returns a new instance of Entry


122
123
124
125
# File 'lib/puppet/pops/pn.rb', line 122

def initialize(key, value)
  @key = key
  @value = value
end

Instance Attribute Details

#keyObject (readonly)


121
122
123
# File 'lib/puppet/pops/pn.rb', line 121

def key
  @key
end

#valueObject (readonly)


121
122
123
# File 'lib/puppet/pops/pn.rb', line 121

def value
  @value
end

Instance Method Details

#eql?(o) ⇒ Boolean Also known as: ==


127
128
129
# File 'lib/puppet/pops/pn.rb', line 127

def eql?(o)
  o.is_a?(Entry) && @key == o.key && @value == o.value
end