Module: Metasploit::Model::Search::Attribute::ClassMethods
- Defined in:
- lib/metasploit/model/search/attribute.rb
Overview
Adds #search_attribute DSL to make attribute search operators.
Instance Method Summary collapse
-
#search_attribute(attribute, options = {}) ⇒ Metasploit::Model::Search::Operator::Base
Registers attribute for search.
Instance Method Details
#search_attribute(attribute, options = {}) ⇒ Metasploit::Model::Search::Operator::Base
Registers attribute for search. Help for the operator supports i18n.
42 43 44 45 46 |
# File 'lib/metasploit/model/search/attribute.rb', line 42 def search_attribute(attribute, ={}) search_with Metasploit::Model::Search::Operator::Attribute, :attribute => attribute, :type => [:type] end |