# frozen_string_literal: true class KeyVortex class Constraint class Base def applies_to?(constraint) attribute == constraint.attribute end def within?(constraint) constraint.instance_of?(self.class) end def to_s "#{attribute}: #{limit}" end end end end