Sha256: fbcb42ed9c9447e54120f06863a53bf8a212669bceefcfd527893c84f01bf76c
Contents?: true
Size: 329 Bytes
Versions: 1
Compression:
Stored size: 329 Bytes
Contents
# 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}: #{value}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
key-vortex-0.1.4 | lib/key_vortex/constraint/base.rb |