Sha256: 0eddecb6755feaffe716b0b44b5f178bdef5401dd22d3223cf149bb64980eac8
Contents?: true
Size: 1.44 KB
Versions: 3
Compression:
Stored size: 1.44 KB
Contents
module Veritas module Logic 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 [Expression] other # # @return [GreaterThan] # # @api public def gt(other) GreaterThan.new(self, other) end end # module Methods end # class GreaterThan end # class Predicate end # module Logic end # module Veritas
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.3 | lib/veritas/logic/predicate/greater_than.rb |
veritas-0.0.2 | lib/veritas/logic/predicate/greater_than.rb |
veritas-0.0.1 | lib/veritas/logic/predicate/greater_than.rb |