Module: Ronin::Payloads::Metadata::Arch

Included in:
ASMPayload
Defined in:
lib/ronin/payloads/metadata/arch.rb

Overview

Metadata mixin that allows a payload to define which architecture it specifically targets.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(payload) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Adds an arch metadata attribute to the payload.



38
39
40
# File 'lib/ronin/payloads/metadata/arch.rb', line 38

def self.included(payload)
  payload.extend ClassMethods
end

Instance Method Details

#arch:x86, ...

The architecture that the payload targets.



82
83
84
# File 'lib/ronin/payloads/metadata/arch.rb', line 82

def arch
  self.class.arch
end