Class: Gem::SafeMarshal::Elements::UserClass

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, wrapped_object) ⇒ UserClass

Returns a new instance of UserClass.



138
139
140
141
# File 'lib/rubygems/safe_marshal/elements.rb', line 138

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



142
143
144
# File 'lib/rubygems/safe_marshal/elements.rb', line 142

def name
  @name
end

#wrapped_objectObject (readonly)

Returns the value of attribute wrapped_object.



142
143
144
# File 'lib/rubygems/safe_marshal/elements.rb', line 142

def wrapped_object
  @wrapped_object
end