Sha256: 5715b01e1b5132603cfd897f36e50c10ca51e436fdccf204d10ff2a57f8efe04
Contents?: true
Size: 1.36 KB
Versions: 3
Compression:
Stored size: 1.36 KB
Contents
# encoding: utf-8 module Axiom class Function class Proposition # A class representing a tautology class Tautology < Proposition include Connective::Negation::Methods # Return the inverse proposition class # # @example # Tautology.inverse # => Contradiction # # @return [Class<Contradiction>] # # @api public def self.inverse Contradiction end # Evaluate the proposition # # @example # Tautology.call # => true # # @return [true] # # @api public def self.call true end # Logically AND the proposition with another expression # # @example # tautology.and(other) # => other # # @param [Function] other # # @return [Function] # # @api public def and(other) other end # Logically OR the proposition with another expression # # @example # tautology.or(other) # => tautology # # @param [Function] _other # # @return [self] # # @api public def or(_other) self end end # class Tautology end # class Proposition end # module Algebra end # module Axiom
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | lib/axiom/function/proposition/tautology.rb |
axiom-0.1.1 | lib/axiom/function/proposition/tautology.rb |
axiom-0.1.0 | lib/axiom/function/proposition/tautology.rb |