Class: Gem::SafeMarshal::Elements::Hash

Inherits:
Element
  • Object
show all
Defined in:
lib/rubygems/safe_marshal/elements.rb

Direct Known Subclasses

HashWithDefaultValue

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pairs) ⇒ Hash

Returns a new instance of Hash.



43
44
45
# File 'lib/rubygems/safe_marshal/elements.rb', line 43

def initialize(pairs)
  @pairs = pairs
end

Instance Attribute Details

#pairsObject (readonly)

Returns the value of attribute pairs.



47
48
49
# File 'lib/rubygems/safe_marshal/elements.rb', line 47

def pairs
  @pairs
end