Class: Gem::SafeMarshal::Elements::Symbol

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) ⇒ Symbol

Returns a new instance of Symbol.



10
11
12
# File 'lib/rubygems/safe_marshal/elements.rb', line 10

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/rubygems/safe_marshal/elements.rb', line 13

def name
  @name
end