lib/rex/arch.rb in librex-0.0.30 vs lib/rex/arch.rb in librex-0.0.31
- old
+ new
@@ -1,10 +1,9 @@
require 'rex/constants'
module Rex
-
###
#
# This module provides generalized methods for performing operations that are
# architecture specific. Furthermore, the modules contained within this
# module provide features that are specific to a given architecture.
@@ -13,11 +12,11 @@
module Arch
#
# Architecture classes
#
- require 'rex/arch/x86'
- require 'rex/arch/sparc'
+ autoload :X86, 'rex/arch/x86'
+ autoload :Sparc, 'rex/arch/sparc'
#
# This routine adjusts the stack pointer for a given architecture.
#
def self.adjust_stack_pointer(arch, adjustment)