Class: Drymm::Shapes::Logic::Unary

Inherits:
Rule
  • Object
show all
Defined in:
lib/drymm/shapes/logic.rb

Overview

See Also:

  • Dry::Logic::Operations::Unary

Class Method Summary collapse

Methods inherited from Rule

compiler, compiler_registry, namespace

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

.coerce_tuple(type, rule) ⇒ Object



53
54
55
# File 'lib/drymm/shapes/logic.rb', line 53

def self.coerce_tuple((type, rule))
  { type: type, rule: rule }
end