Class: Puppet::Pops::PN::Entry
Instance Attribute Summary collapse
- #key ⇒ Object readonly
- #value ⇒ Object readonly
Instance Method Summary collapse
- #eql?(o) ⇒ Boolean (also: #==)
-
#initialize(key, value) ⇒ Entry
constructor
A new instance of Entry.
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
#value ⇒ Object (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: ==
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 |