Class: Gem::SafeMarshal::Elements::ObjectLink

Inherits:
Element
  • Object
show all
Defined in:
lib/rubygems/safe_marshal/elements.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offset) ⇒ ObjectLink

Returns a new instance of ObjectLink.



109
110
111
# File 'lib/rubygems/safe_marshal/elements.rb', line 109

def initialize(offset)
  @offset = offset
end

Instance Attribute Details

#offsetObject (readonly)

Returns the value of attribute offset.



112
113
114
# File 'lib/rubygems/safe_marshal/elements.rb', line 112

def offset
  @offset
end