Class: Ronin::Arch
- Inherits:
-
Object
- Object
- Ronin::Arch
- Includes:
- Model, Model::HasUniqueName
- Defined in:
- lib/ronin/arch.rb
Overview
Represents a Computer Architecture and pre-defines many other common architectures (x86, x86_64, ia64, ppc, ppc64, sparc, sparc64, mips and arm).
Class Method Summary collapse
-
.predefine(name, options = {}) ⇒ Object
private
Defines a new pre-defined Arch.
Instance Method Summary collapse
-
#to_ary ⇒ Array
Splats the architecture into multiple variables.
Methods included from Model::HasUniqueName
Methods included from Model
Class Method Details
.predefine(name, options = {}) ⇒ 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.
Defines a new pre-defined Arch.
92 93 94 |
# File 'lib/ronin/arch.rb', line 92 def self.predefine(name,={}) super(name,{:name => name}.merge()) end |
Instance Method Details
#to_ary ⇒ Array
Splats the architecture into multiple variables.
65 66 67 |
# File 'lib/ronin/arch.rb', line 65 def to_ary [self.endian, self.address_length] end |