Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/rbbt/annotations/util.rb

Instance Method Summary collapse

Instance Method Details

#marshal_load(hash) ⇒ Object



272
273
274
275
276
277
278
279
280
281
# File 'lib/rbbt/annotations/util.rb', line 272

def marshal_load(hash)
  if Hash === hash
    e = Annotated.load_hash(hash)
    self.replace e
    e.annotate(self)
    self
  else
    self.replace hash
  end
end