Class: Gem::SafeMarshal::Elements::Object

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Object

Returns a new instance of Object.



98
99
100
# File 'lib/rubygems/safe_marshal/elements.rb', line 98

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



101
102
103
# File 'lib/rubygems/safe_marshal/elements.rb', line 101

def name
  @name
end