Class: SymbolsLogger
- Inherits:
-
Object
- Object
- SymbolsLogger
- Defined in:
- lib/node-marshal.rb
Overview
Designed for the logging of symbols table changes. When an example of SymbolsLogger is created the current global table of symbols is saved inside it. The created example can be used for finding new symbols in the global table. This is useful for code obfuscation.
Instance Method Summary collapse
-
#initialize ⇒ SymbolsLogger
constructor
A new instance of SymbolsLogger.
- #new_symbols ⇒ Object
- #update ⇒ Object
Constructor Details
#initialize ⇒ SymbolsLogger
Returns a new instance of SymbolsLogger.
215 216 217 |
# File 'lib/node-marshal.rb', line 215 def initialize @symtbl_old = Symbol.all_symbols end |
Instance Method Details
#new_symbols ⇒ Object
219 220 221 222 |
# File 'lib/node-marshal.rb', line 219 def new_symbols symtbl_new = Symbol.all_symbols symtbl_new - @symtbl_old end |
#update ⇒ Object
224 225 226 |
# File 'lib/node-marshal.rb', line 224 def update @symtbl_old = Symbol.all_symbols end |