Sha256: 39f8d95127a24941c34588c5d0b02cb4a263871ec478d87af48a998447e20b7e
Contents?: true
Size: 1.27 KB
Versions: 3
Compression:
Stored size: 1.27 KB
Contents
# Search the equivalent of the text fields from `Mdm::Module::Detail` and its associations, making a union of # `description`, `name`, `actions.name`, `architectures.abbreviation`, `platform`, and `ref`. class Metasploit::Model::Search::Operator::Deprecated::Text < Metasploit::Model::Search::Operator::Union # # CONSTANTS # # Names of operators that are unioned together for {Metasploit::Model::Search::Operator::Union#operate_on}. OPERATOR_NAMES = [ 'description', 'name', 'actions.name', 'architectures.abbreviation', # platforms.name or targets.name 'platform', # authors.name, references.designation, or references.url are handled by # {Metasploit::Model::Search::Operator::Deprecated::Ref} to reuse its special parsing of the old # <abbreviation OR 'URL'>-<designation or url> format. 'ref', ] # `description`, `name`, `actions.name`, `architectures.abbreviation`, `platform`, and `ref`. # # @param formatted_value [String] value parsed from formatted operation # @return [Array<Metasploit::Model::Search::Operation::Base>] def children(formatted_value) OPERATOR_NAMES.collect { |operator_name| named_operator = operator(operator_name) named_operator.operate_on(formatted_value) } end end
Version data entries
3 entries across 3 versions & 1 rubygems