Class: Gem::SafeMarshal::Elements::UserMarshal

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, data) ⇒ UserMarshal

Returns a new instance of UserMarshal.



26
27
28
29
# File 'lib/rubygems/safe_marshal/elements.rb', line 26

def initialize(name, data)
  @name = name
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



31
32
33
# File 'lib/rubygems/safe_marshal/elements.rb', line 31

def data
  @data
end

#nameObject (readonly)

Returns the value of attribute name.



31
32
33
# File 'lib/rubygems/safe_marshal/elements.rb', line 31

def name
  @name
end