123456789_123456789_123456789_123456789_123456789_

Class: Gem::SafeMarshal::Elements::HashWithDefaultValue

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Hash, Element
Instance Chain:
self, Hash, Element
Inherits: Gem::SafeMarshal::Elements::Hash
Defined in: lib/rubygems/safe_marshal/elements.rb

Class Method Summary

Instance Attribute Summary

Hash - Inherited

Constructor Details

.new(pairs, default) ⇒ HashWithDefaultValue

[ GitHub ]

  
# File 'lib/rubygems/safe_marshal/elements.rb', line 51

def initialize(pairs, default)
  super(pairs)
  @default = default
end

Instance Attribute Details

#default (readonly)

[ GitHub ]

  
# File 'lib/rubygems/safe_marshal/elements.rb', line 56

attr_reader :default