Class: Indis::BinaryArchitecture::Architecture

Inherits:
Object
  • Object
show all
Defined in:
lib/indis-core/binary_architecture.rb

Overview

Base class for any binary architecture

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ Architecture

Basic constructor takes care of storing the target



37
38
39
# File 'lib/indis-core/binary_architecture.rb', line 37

def initialize(target)
  @target = target
end

Class Method Details

.nameSymbol

This method is abstract.

Returns the format magic bytes.

Returns symbolicated name of the architecture.

Returns:

  • (Symbol)

    symbolicated name of the architecture

Raises:

  • (RuntimeError)


44
45
46
# File 'lib/indis-core/binary_architecture.rb', line 44

def self.name
  raise RuntimeError, "#name not implemented in architecture #{self.class}"
end