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.



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

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

Instance Attribute Details

#keyObject (readonly)



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

def key
  @key
end

#valueObject (readonly)



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

def value
  @value
end

Instance Method Details

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

Returns:

  • (Boolean)


131
132
133
# File 'lib/puppet/pops/pn.rb', line 131

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