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