Sha256: 53a045a7cc511fad3fb02f3da80edbc836801d14609817fb03c94e1d7e4c8319
Contents?: true
Size: 829 Bytes
Versions: 15
Compression:
Stored size: 829 Bytes
Contents
# @abstract Declare search operators using {Metasploit::Model::Search::ClassMethods#search_attribute} and include # operators from associations with {Metasploit::Model::Search::ClassMethods#search_association}. # # A search operator. class Metasploit::Model::Search::Operator::Base < Metasploit::Model::Base include ActiveModel::Validations include Metasploit::Model::Search::Operator::Help # # Attributes # # @!attribute [rw] klass # The class on which this operator is usable. # # @return [Class] attr_accessor :klass # # Validations # validates :klass, :presence => true # @abstract subclass and derive operator name from attributes of subclass. # # Name of this operator. # # @return [String] # @raise [NotImplementedError] def name raise NotImplementedError end end
Version data entries
15 entries across 15 versions & 1 rubygems