Sha256: 35cd062884b8b59644b7b372347dc2401e91a33fd92cacec5fb4968eafd886a6

Contents?: true

Size: 356 Bytes

Versions: 6

Compression:

Stored size: 356 Bytes

Contents

module CohortScope
  class StrictCohort < Cohort
    
    # (Used by <tt>strict_cohort</tt>)
    #
    # Reduce constraints by removing the least important one.
    def self.reduce_constraints(model, constraints)
      reduced_constraints = constraints.dup
      reduced_constraints.delete constraints.keys.last
      reduced_constraints
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cohort_scope-0.1.5 lib/cohort_scope/strict_cohort.rb
cohort_scope-0.1.4 lib/cohort_scope/strict_cohort.rb
cohort_scope-0.1.3 lib/cohort_scope/strict_cohort.rb
cohort_scope-0.1.2 lib/cohort_scope/strict_cohort.rb
cohort_scope-0.1.1 lib/cohort_scope/strict_cohort.rb
cohort_scope-0.1.0 lib/cohort_scope/strict_cohort.rb