Sha256: 0c47ea094cb92787f8bb25e2269563347f99b84913c684a67eb04fd7f0c35547
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 Bytes
Contents
# frozen_string_literal: true class Revector module GreaterThan def self.check!(item, iteratee, right) left = Utility::TryFetchOrBlank[item, iteratee] return false unless left compare(left, right) end def self.compare(left, right) left > right end end module GreaterThanEqual def self.check!(item, iteratee, right) left = Utility::TryFetchOrBlank[item, iteratee] return false unless left compare(left, right) end def self.compare(left, right) left >= right end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
revector-0.1.2 | lib/revector/predicate/greater_than.rb |
revector-0.1.1 | lib/revector/predicate/greater_than.rb |
revector-0.1.0 | lib/revector/predicate/greater_than.rb |