Sha256: 35aab739ec959b4927851b7ed6a703dbbf37669547a6ed79bcedd48960477f00
Contents?: true
Size: 1.44 KB
Versions: 3
Compression:
Stored size: 1.44 KB
Contents
# encoding: utf-8 module Axiom class Function class Predicate # A predicate representing a less than test between operands class LessThan < Predicate include Comparable # Return the LessThan operation # # @example # LessThan.operation # => :< # # @return [Symbol] # # @api public def self.operation :< end # Return the inverse predicate class # # @example # LessThan.inverse # => GreaterThanOrEqualTo # # @return [Class<GreaterThanOrEqualTo>] # # @api public def self.inverse GreaterThanOrEqualTo end # Return the reverse predicate class # # @example # LessThan.reverse # => GreaterThan # # @return [Class<GreaterThan>] # # @api public def self.reverse GreaterThan end module Methods # Compare the left to see if it is less than the right # # @example # less_than = expression.lt(other) # # @param [Function] other # # @return [LessThan] # # @api public def lt(other) LessThan.new(self, other) end end # module Methods end # class LessThan 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/less_than.rb |
axiom-0.1.1 | lib/axiom/function/predicate/less_than.rb |
axiom-0.1.0 | lib/axiom/function/predicate/less_than.rb |