Module: Contrast::Utils::PreventMarshalSerialization

Included in:
PreventSerialization
Defined in:
lib/contrast/utils/prevent_serialization.rb

Overview

DO NOT REMOVE THIS!

Marshal is pretty cool. It does a lot of things well. What it doesn’t mess around with though is StringIO. And what we don’t want to do is serialize ourselves out with Marshal#dump.

Unfortunately, we have to mess around w/ that. To isolate our things from user dumped Strings (and so that we can marshal findings), we have decided to make this class not marshalled.

Instance Method Summary collapse

Instance Method Details

#marshal_dumpObject



16
17
18
# File 'lib/contrast/utils/prevent_serialization.rb', line 16

def marshal_dump
  nil
end

#marshal_load(*_args) ⇒ Object



20
21
22
# File 'lib/contrast/utils/prevent_serialization.rb', line 20

def marshal_load *_args
  nil
end