Class: Ducktrap::Node::Block

Inherits:
Ducktrap::Node show all
Includes:
Ducktrap::Nary
Defined in:
lib/ducktrap/node/block.rb

Overview

Ducktrap that returns last evaluator output of a chain and stops on first failure. Acts like AND with multiple inputs.

Defined Under Namespace

Classes: Evaluator

Constant Summary

Constants included from Ducktrap::Nary

Ducktrap::Nary::CONCORD

Instance Method Summary collapse

Methods inherited from Ducktrap::Node

build, #call, #run

Methods included from PrettyDump

#pretty_dump, #pretty_inspect

Instance Method Details

#inverseNode

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return inverse ducktrap

Returns:



14
15
16
# File 'lib/ducktrap/node/block.rb', line 14

def inverse
  self.class.new(inverse_body)
end