Class: Gem::SafeMarshal::Elements::UserDefined

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, 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_stringObject (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

#nameObject (readonly)

Returns the value of attribute name.



22
23
24
# File 'lib/rubygems/safe_marshal/elements.rb', line 22

def name
  @name
end