Module: Relyze::ExecutableFileModel::Instruction::RawDecodedInstructionMixin

Defined in:
C:/Program Files/Relyze/lib/relyze/core/executable_file_model.rb

Overview

A helper mixin module that is applied to all Hash objects in a raw decoded instruction Hash in order to access the hash values via method calls to the expected key value. A helper method to_asm is also provided.

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *opts) ⇒ Object



1445
1446
1447
1448
1449
1450
1451
# File 'C:/Program Files/Relyze/lib/relyze/core/executable_file_model.rb', line 1445

def method_missing( method, *opts )
    key = method.to_sym
    if( self.has_key?( key ) )
        return self[key]
    end
    super
end

Instance Method Details

#to_asmObject



1441
1442
1443
# File 'C:/Program Files/Relyze/lib/relyze/core/executable_file_model.rb', line 1441

def to_asm
    return Relyze::ExecutableFileModel::Instruction.to_asm( self )
end