Module: Ronin::Core::CLI::Printing::Arch
- Defined in:
- lib/ronin/core/cli/printing/arch.rb
Overview
Command methods for printing arch IDs.
Constant Summary collapse
- ARCH_NAMES =
          Mapping of architecture IDs to printable names. 
- { x86: 'x86', x86_64: 'x86-64', ia64: 'IA64', amd64: 'x86-64', ppc: 'PPC', ppc64: 'PPC64', mips: 'MIPS', mips_le: 'MIPS (LE)', mips_be: 'MIPS', mips64: 'MIPS64', mips64_le: 'MIPS64 (LE)', mips64_be: 'MIPS64', arm: 'ARM', arm_le: 'ARM', arm_be: 'ARM (BE)', arm64: 'ARM64', arm64_le: 'ARM64', arm64_be: 'ARM64 (BE)' } 
Instance Method Summary collapse
- 
  
    
      #arch_name(arch)  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Converts the architecture ID to a printable name. 
Instance Method Details
#arch_name(arch) ⇒ String
Converts the architecture ID to a printable name.
| 64 65 66 | # File 'lib/ronin/core/cli/printing/arch.rb', line 64 def arch_name(arch) ARCH_NAMES.fetch(arch,&:to_s) end |