Sha256: 9b1b5df90d75fd57a0201e097cfe6ed2da16e9588d29fe20065a49bd1e308c3e
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
# frozen_string_literal: true require "key_vortex/constraint/base" class KeyVortex class Constraint class Minimum < KeyVortex::Constraint::Base attr_reader :value def initialize(value) super() @value = value end def attribute :maximum end def within?(constraint) super && value >= constraint.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/minimum.rb |