Class: Gem::SafeMarshal::Elements::UserClass
- Defined in:
- lib/rubygems/safe_marshal/elements.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#wrapped_object ⇒ Object
readonly
Returns the value of attribute wrapped_object.
Instance Method Summary collapse
-
#initialize(name, wrapped_object) ⇒ UserClass
constructor
A new instance of UserClass.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
142 143 144 |
# File 'lib/rubygems/safe_marshal/elements.rb', line 142 def name @name end |
#wrapped_object ⇒ Object (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 |