Sha256: 7f0664b22a4b2c8b511c59b4e02024ab1e6dc6b3bf8c3a5ccf299edade6e67c7

Contents?: true

Size: 839 Bytes

Versions: 2

Compression:

Stored size: 839 Bytes

Contents

module Axiom
  module Adapter
    module Arango
      class Visitor
        # Base class for visitors with static root
        class Static < self

          # Return root node
          #
          # @return [AQL::Node]
          #
          # @api private
          #
          def root
            self.class::ROOT
          end

          # Visitor for Axiom::Function::Proposition::Tautology
          class Tautology < self
            ROOT = AQL::Node::Literal::Singleton::TRUE
            handle(Axiom::Function::Proposition::Tautology)
          end

          # Visitor for Axiom::Function::Proposition::Contradiction
          class Contradiction < self
            ROOT = AQL::Node::Literal::Singleton::FALSE
            handle(Axiom::Function::Proposition::Contradiction)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-arango-adapter-0.0.2 lib/axiom/adapter/arango/visitor/function.rb
axiom-arango-adapter-0.0.1 lib/axiom/adapter/arango/visitor/function.rb