Module: OrokuSaki::StringExt

Defined in:
lib/oroku_saki/string_ext.rb

Overview

A handful of extensions included in String to give easy access to the shred methods.

Instance Method Summary collapse

Instance Method Details

#shred!nil

Zero out the receiver

Delegates to the method with the same name on the OrokuSaki method.

Returns:

  • (nil)


9
10
11
# File 'lib/oroku_saki/string_ext.rb', line 9

def shred!
  OrokuSaki.shred!(self)
end

#shred_laterself

Attach a zeroing finalizer to the receiver

Delegates to the method with the same name on the OrokuSaki method.

Returns:

  • (self)


17
18
19
# File 'lib/oroku_saki/string_ext.rb', line 17

def shred_later
  OrokuSaki.shred_later(self)
end