/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/msf/core/module/arch.rb
46 строк
635 B
Luke Imhoff
arch -> Msf::Module::Arch
16 окт 2014, 22:21
Не верифицирован
16 окт 2014, 22:21
e418f98
Код
Авторство
О чём код?
module Msf::Module::Arch # # Attributes # # @!attribute arch # The array of zero or more architectures. attr_reader :arch # # Instance Methods # # # Return whether or not the module supports the supplied architecture. # def arch?(what) if (what == ARCH_ANY) true else arch.index(what) != nil end end # # Return a comma separated list of supported architectures, if any. # def arch_to_s arch.join(", ") end # # Enumerate each architecture. # def each_arch(&block) arch.each(&block) end protected # # Attributes # attr_writer :arch end