Module: Indis::BinaryArchitecture

Defined in:
lib/indis-core/binary_architecture.rb

Overview

BinaryArchitecture manages all known architectures and provides support for resolving the correct class for named architecture

Defined Under Namespace

Classes: Architecture

Class Method Summary collapse

Class Method Details

.known_archsObject



25
26
27
28
29
30
31
32
# File 'lib/indis-core/binary_architecture.rb', line 25

def self.known_archs
  fmt = {}
  self.constants.each do |c|
    e = const_get(c)
    fmt[e.name] = e if e.is_a?(Class) && e.superclass == Architecture
  end
  fmt
end