Class: Gem::SafeMarshal::Elements::HashWithDefaultValue
- Defined in:
- lib/rubygems/safe_marshal/elements.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
Attributes inherited from Hash
Instance Method Summary collapse
-
#initialize(pairs, default) ⇒ HashWithDefaultValue
constructor
A new instance of HashWithDefaultValue.
Constructor Details
#initialize(pairs, default) ⇒ HashWithDefaultValue
Returns a new instance of HashWithDefaultValue.
51 52 53 54 |
# File 'lib/rubygems/safe_marshal/elements.rb', line 51 def initialize(pairs, default) super(pairs) @default = default end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
56 57 58 |
# File 'lib/rubygems/safe_marshal/elements.rb', line 56 def default @default end |