Sha256: 83b9cf1c4c544c0f7d526fd6db155b77049b02d0af0b8700e1d59eb0fdbd0169

Contents?: true

Size: 813 Bytes

Versions: 60

Compression:

Stored size: 813 Bytes

Contents

# Operation that uses a {Metasploit::Model::Search::Operation::Null null operator}.
class Metasploit::Model::Search::Operation::Null < Metasploit::Model::Search::Operation::Base
  #
  # Validations
  #

  validate :null_operator

  #
  # Methods
  #

  private

  # Validates that {Metasploit::Model::Search::Operation::Base#operator} is a
  # {Metasploit::Model::Search::Operator::Null}, as {Metasploit::Model::Search::Operation::Null} won't validate
  # correctly (and be invalid) if {Metasploit::Model::Search::Operation::Base#operator} is not a
  # {Metasploit::Model::Search::Operator::Null}.
  #
  # @return [void]
  def null_operator
    unless operator.is_a? Metasploit::Model::Search::Operator::Null
      errors.add(:operator, :type, :type => Metasploit::Model::Search::Operator::Null)
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
metasploit-model-5.0.2 app/models/metasploit/model/search/operation/null.rb
metasploit-model-5.0.1 app/models/metasploit/model/search/operation/null.rb
metasploit-model-5.0.0 app/models/metasploit/model/search/operation/null.rb
metasploit-model-4.0.6 app/models/metasploit/model/search/operation/null.rb
metasploit-model-4.0.5 app/models/metasploit/model/search/operation/null.rb
metasploit-model-4.0.4 app/models/metasploit/model/search/operation/null.rb
metasploit-model-4.0.3 app/models/metasploit/model/search/operation/null.rb
metasploit-model-4.0.2 app/models/metasploit/model/search/operation/null.rb
metasploit-model-4.0.1 app/models/metasploit/model/search/operation/null.rb
metasploit-model-4.0.0 app/models/metasploit/model/search/operation/null.rb
metasploit-model-3.1.4 app/models/metasploit/model/search/operation/null.rb
metasploit-model-3.1.3 app/models/metasploit/model/search/operation/null.rb
metasploit-model-3.1.2 app/models/metasploit/model/search/operation/null.rb
metasploit-model-3.1.1 app/models/metasploit/model/search/operation/null.rb
metasploit-model-3.1.0 app/models/metasploit/model/search/operation/null.rb
metasploit-model-3.0.0 app/models/metasploit/model/search/operation/null.rb
metasploit-model-2.0.4 app/models/metasploit/model/search/operation/null.rb
metasploit-model-2.0.3 app/models/metasploit/model/search/operation/null.rb
metasploit-model-2.0.2 app/models/metasploit/model/search/operation/null.rb
metasploit-model-2.0.1 app/models/metasploit/model/search/operation/null.rb