Sha256: 2f2440065a97f3d1c53bfe019b41f924a1f38c99992834eb59fe16c0af186c29
Contents?: true
Size: 1.46 KB
Versions: 4
Compression:
Stored size: 1.46 KB
Contents
# encoding: utf-8 module Veritas class Function class Predicate # A predicate representing a greater than test between operands class GreaterThan < Predicate include Comparable # Return the GreaterThan operation # # @example # GreaterThan.operation # => :> # # @return [Symbol] # # @api public def self.operation :> end # Return the inverse predicate class # # @example # GreaterThan.inverse # => LessThanOrEqualTo # # @return [Class<LessThanOrEqualTo>] # # @api public def self.inverse LessThanOrEqualTo end # Return the reverse predicate class # # @example # GreaterThan.reverse # => LessThan # # @return [Class<LessThan>] # # @api public def self.reverse LessThan end module Methods # Compare the left to see if it is greater than the right # # @example # greater_than = expression.gt(other) # # @param [Function] other # # @return [GreaterThan] # # @api public def gt(other) GreaterThan.new(self, other) end end # module Methods end # class GreaterThan end # class Predicate end # class Function end # module Veritas
Version data entries
4 entries across 4 versions & 1 rubygems