Sha256: 0f39a3fb06c594f2ed00429859173a96dda2bbccab52fd3973c12c2f42aa9c7a
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
# frozen_string_literal: true require "key_vortex/constraint/base" class KeyVortex class Constraint class Maximum < KeyVortex::Constraint::Base attr_reader :value def initialize(value) super() @value = value end def attribute :maximum end def within_applicable?(constraint) value <= constraint.value end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
key-vortex-0.1.3 | lib/key_vortex/constraint/maximum.rb |