Sha256: 4060d5d4321e2964bf2b0871a9e7bba2f639d030389cae0111e0c4d2394906da
Contents?: true
Size: 1.46 KB
Versions: 3
Compression:
Stored size: 1.46 KB
Contents
# encoding: utf-8 module Axiom 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 Axiom
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | lib/axiom/function/predicate/greater_than.rb |
axiom-0.1.1 | lib/axiom/function/predicate/greater_than.rb |
axiom-0.1.0 | lib/axiom/function/predicate/greater_than.rb |