Class: Ducktrap::Node::GuardNil

Inherits:
Ducktrap::Node show all
Includes:
Unary
Defined in:
lib/ducktrap/node/guard_nil.rb

Overview

Transformation node to guard nil inputs as nil outputs

Defined Under Namespace

Classes: Evaluator

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 transformation

Returns:



15
16
17
# File 'lib/ducktrap/node/guard_nil.rb', line 15

def inverse
  self.class.new(operand.inverse)
end