Class: Gem::SafeMarshal::Elements::Hash
- Defined in:
- lib/rubygems/safe_marshal/elements.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#pairs ⇒ Object
readonly
Returns the value of attribute pairs.
Instance Method Summary collapse
-
#initialize(pairs) ⇒ Hash
constructor
A new instance of Hash.
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
#pairs ⇒ Object (readonly)
Returns the value of attribute pairs.
47 48 49 |
# File 'lib/rubygems/safe_marshal/elements.rb', line 47 def pairs @pairs end |