Class: Drymm::Shapes::Logic::Rule Abstract

Inherits:
Node
  • Object
show all
Extended by:
Branch, Summarize
Defined in:
lib/drymm/shapes/logic.rb

Overview

This class is abstract.

Abstract node branch class for shapes of Dry::Logic

Class Method Summary collapse

Methods included from Branch

auto_tuple, auto_tuple!, coerce_tuple, retuple

Methods inherited from Node

type_enum, type_identifier

Methods included from ASTMethods

#compile, #to_ast

Methods included from JSONMethods

#to_json

Class Method Details

.compiler(registry = compiler_registry()) ⇒ ::Dry::Logic::RuleCompiler

Returns:

  • (::Dry::Logic::RuleCompiler)


26
27
28
# File 'lib/drymm/shapes/logic.rb', line 26

def self.compiler(registry = compiler_registry())
  ::Dry::Logic::RuleCompiler.new(registry)
end

.compiler_registry::Dry::Logic::Predicates

Returns:

  • (::Dry::Logic::Predicates)


21
22
23
# File 'lib/drymm/shapes/logic.rb', line 21

def self.compiler_registry
  ::Dry::Logic::Predicates
end

.namespaceObject



16
17
18
# File 'lib/drymm/shapes/logic.rb', line 16

def self.namespace
  Logic
end