File: contradiction.rb

package info (click to toggle)
ruby-morpher 0.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 520 kB
  • sloc: ruby: 2,366; makefile: 4
file content (36 lines) | stat: -rw-r--r-- 637 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
module Morpher
  class Evaluator
    class Predicate

      # Evaluator for contradiction
      class Contradiction < self
        include Nullary

        register :false

        # Call predicate evaluator
        #
        # @param [Object] _input
        #
        # @return [false]
        #
        # @api private
        #
        def call(_input)
          false
        end

        # Return inverse evaluator
        #
        # @return [Evaluator]
        #
        # @api private
        #
        def inverse
          Tautology.new
        end

      end # Contradiction
    end # Predicate
  end # Evaluator
end # Morpher