Class: Ronin::Arch

Included Modules

Ronin::Model, DataMapper::Predefined

Constants Included from Ronin::Model

REPOSITORY_NAME

Public Visibility

Public Class Method Summary

address_length(repository = nil)

Address length of the architecture.

arm_be

The ARM (big-endian) Architecture.

arm_le

The ARM (little-endian) Architecture.

endian(repository = nil)

Endianness of the architecture.

i386

The i386 Architecture.

i486

The i486 Architecture.

i686

The i686 Architecture.

i986

The i986 Architecture.

ia64

The ia64 Architecture.

id(repository = nil)

Primary key.

mips_be

The MIPS (big-endian) Architecture.

mips_le

The MIPS (little-endian) Architecture.

name(repository = nil)

Name of the architecture.

ppc

The 32-bit PowerPC Architecture.

ppc64

The 64-bit PowerPC Architecture.

predefine(name, options = {})

Defines a new builtin Arch with the specified name and the given.

sparc

The 32-bit SPARC Architecture.

sparc64

The 64-bit SPARC Architecture.

x86_64

The x86_64 Architecture.

Public Instance Method Summary

#address_length

Address length of the architecture.

#address_length=(value)

Address length of the architecture.

#endian

Endianness of the architecture.

#endian=(value)

Endianness of the architecture.

#id

Primary key.

#id=(value)

Primary key.

#name

Name of the architecture.

#name=(value)

Name of the architecture.

#to_s

Converts the architecture to a String.

Returns: String

Public Instance Methods Included from Ronin::Model

humanize_attributes

Public Class Method Details

address_length

public address_length(repository = nil)

Address length of the architecture

[View source]


43
# File 'lib/ronin/arch.rb', line 43

property :address_length, Integer

arm_be

public arm_be

The ARM (big-endian) Architecture

[View source]


129
# File 'lib/ronin/arch.rb', line 129

predefine :arm_be, :endian => :big, :address_length => 4

arm_le

public arm_le

The ARM (little-endian) Architecture

[View source]


126
# File 'lib/ronin/arch.rb', line 126

predefine :arm_le, :endian => :little, :address_length => 4

endian

public endian(repository = nil)

Endianness of the architecture

[View source]


40
# File 'lib/ronin/arch.rb', line 40

property :endian, String

i386

public i386

The i386 Architecture

[View source]


90
# File 'lib/ronin/arch.rb', line 90

predefine :i386, :endian => :little, :address_length => 4

i486

public i486

The i486 Architecture

[View source]


93
# File 'lib/ronin/arch.rb', line 93

predefine :i486, :endian => :little, :address_length => 4

i686

public i686

The i686 Architecture

[View source]


96
# File 'lib/ronin/arch.rb', line 96

predefine :i686, :endian => :little, :address_length => 4

i986

public i986

The i986 Architecture

[View source]


99
# File 'lib/ronin/arch.rb', line 99

predefine :i986, :endian => :little, :address_length => 4

ia64

public ia64

The ia64 Architecture

[View source]


105
# File 'lib/ronin/arch.rb', line 105

predefine :ia64, :endian => :little, :address_length => 8

id

public id(repository = nil)

Primary key

[View source]


34
# File 'lib/ronin/arch.rb', line 34

property :id, Serial

mips_be

public mips_be

The MIPS (big-endian) Architecture

[View source]


123
# File 'lib/ronin/arch.rb', line 123

predefine :mips_be, :endian => :big, :address_length => 4

mips_le

public mips_le

The MIPS (little-endian) Architecture

[View source]


120
# File 'lib/ronin/arch.rb', line 120

predefine :mips_le, :endian => :little, :address_length => 4

name

public name(repository = nil)

Name of the architecture

[View source]


37
# File 'lib/ronin/arch.rb', line 37

property :name, String

ppc

public ppc

The 32-bit PowerPC Architecture

[View source]


108
# File 'lib/ronin/arch.rb', line 108

predefine :ppc, :endian => :big, :address_length => 4

ppc64

public ppc64

The 64-bit PowerPC Architecture

[View source]


111
# File 'lib/ronin/arch.rb', line 111

predefine :ppc64, :endian => :big, :address_length => 8

predefine

public predefine(name, options = {})

Defines a new builtin Arch with the specified name and the given options.

Meta Tags

Examples

Defining a builtin Arch

  Arch.predefine :alpha, :endian => :big, :address_length => 8

Retrieving a predefined Arch

  Arch.alpha

Parameters:

[Symbol, String] name

The name of the architecture.

Options Hash options
Key Name Default Value Accepted Types Description
:endian N/A [Symbol, String]

The endianness of the architecture.

:address_length N/A [Integer]

The address-length of the architecture.

[View source]


85
86
87
# File 'lib/ronin/arch.rb', line 85

def self.predefine(name,options={})
  super(name,options.merge(:name => name))
end

sparc

public sparc

The 32-bit SPARC Architecture

[View source]


114
# File 'lib/ronin/arch.rb', line 114

predefine :sparc, :endian => :big, :address_length => 4

sparc64

public sparc64

The 64-bit SPARC Architecture

[View source]


117
# File 'lib/ronin/arch.rb', line 117

predefine :sparc64, :endian => :big, :address_length => 8

x86_64

public x86_64

The x86_64 Architecture

[View source]


102
# File 'lib/ronin/arch.rb', line 102

predefine :x86_64, :endian => :little, :address_length => 8

Public Instance Method Details

address_length

public address_length

Address length of the architecture

[View source]


43
# File 'lib/ronin/arch.rb', line 43

property :address_length, Integer

address_length=

public address_length=(value)

Address length of the architecture

[View source]


43
# File 'lib/ronin/arch.rb', line 43

property :address_length, Integer

endian

public endian

Endianness of the architecture

[View source]


40
# File 'lib/ronin/arch.rb', line 40

property :endian, String

endian=

public endian=(value)

Endianness of the architecture

[View source]


40
# File 'lib/ronin/arch.rb', line 40

property :endian, String

id

public id

Primary key

[View source]


34
# File 'lib/ronin/arch.rb', line 34

property :id, Serial

id=

public id=(value)

Primary key

[View source]


34
# File 'lib/ronin/arch.rb', line 34

property :id, Serial

name

public name

Name of the architecture

[View source]


37
# File 'lib/ronin/arch.rb', line 37

property :name, String

name=

public name=(value)

Name of the architecture

[View source]


37
# File 'lib/ronin/arch.rb', line 37

property :name, String

to_s

public String to_s

Converts the architecture to a String.

Meta Tags

Returns:

[String]

The name of the architecture.

[View source]


59
60
61
# File 'lib/ronin/arch.rb', line 59

def to_s
  self.name.to_s
end
Generated on Friday, September 25 2009 at 02:57:16 PM by YARD 0.2.3.5 (ruby-1.8.6).