Class: NoSE::Search::Constraint

Inherits:
Object
  • Object
show all
Defined in:
lib/nose/search/constraints.rb

Overview

Base class for constraints

Class Method Summary collapse

Class Method Details

.apply(problem) ⇒ void

This method returns an undefined value.

If this is not overridden, apply query-specific constraints



9
10
11
12
13
# File 'lib/nose/search/constraints.rb', line 9

def self.apply(problem)
  problem.queries.each_with_index do |query, q|
    apply_query query, q, problem
  end
end

.apply_query(*_args) ⇒ void

This method returns an undefined value.

To be implemented in subclasses for query-specific constraints



17
18
# File 'lib/nose/search/constraints.rb', line 17

def self.apply_query(*_args)
end