Sha256: c5ad5c8c556727bf82a0913eb1b195a573f1c42bc266595e63be590ff8c7e67a

Contents?: true

Size: 728 Bytes

Versions: 6

Compression:

Stored size: 728 Bytes

Contents

The const_missing trick
=======================

Metasm uses a ruby trick to load most of the framework on demand, so that
*e.g.* the `MIPS`-related classes are never loaded in the ruby interpreter
unless you use them.

It is setup by the top-level `metasm.rb` file, by using the ruby mechanism of
`Module.autoload`. This mechanism will automatically load the specified metasm
components whenever a reference is made to one of the constants listed here.

Metasm provides a replacement top-level file, `misc/metasm-all.rb`,
which will unconditionally load all metasm files.
This will not however load mutually exclusive files, like the Gui subsystems ;
in this case it will load only the autodetected gui module (win32 or gtk).

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
metasm-1.0.5 doc/const_missing.txt
metasm-1.0.4 doc/const_missing.txt
metasm-1.0.3 doc/const_missing.txt
metasm-1.0.2 doc/const_missing.txt
metasm-1.0.1 doc/const_missing.txt
metasm-1.0.0 doc/const_missing.txt