Path: blob/master/lib/msf/core/module/arch.rb
19715 views
module Msf::Module::Arch1#2# Attributes3#45# @!attribute arch6# The array of zero or more architectures.7attr_reader :arch89#10# Instance Methods11#1213#14# Return whether or not the module supports the supplied architecture.15#16def arch?(what)17if (what == ARCH_ANY)18true19else20arch.index(what) != nil21end22end2324#25# Return a comma separated list of supported architectures, if any.26#27def arch_to_s28arch.join(", ")29end3031#32# Enumerate each architecture.33#34def each_arch(&block)35arch.each(&block)36end3738protected3940#41# Attributes42#4344attr_writer :arch45end4647