Class: Gem::SafeMarshal::Elements::UserDefined
- Defined in:
- lib/rubygems/safe_marshal/elements.rb
Instance Attribute Summary collapse
-
#binary_string ⇒ Object
readonly
Returns the value of attribute binary_string.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, binary_string) ⇒ UserDefined
constructor
A new instance of UserDefined.
Constructor Details
#initialize(name, binary_string) ⇒ UserDefined
Returns a new instance of UserDefined.
17 18 19 20 |
# File 'lib/rubygems/safe_marshal/elements.rb', line 17 def initialize(name, binary_string) @name = name @binary_string = binary_string end |
Instance Attribute Details
#binary_string ⇒ Object (readonly)
Returns the value of attribute binary_string.
22 23 24 |
# File 'lib/rubygems/safe_marshal/elements.rb', line 22 def binary_string @binary_string end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/rubygems/safe_marshal/elements.rb', line 22 def name @name end |