Class: Ducktrap::Node::Invalid

Inherits:
Ducktrap::Node show all
Includes:
Singleton
Defined in:
lib/ducktrap/node/invalid.rb

Overview

Noope node, returns input as output

Instance Method Summary collapse

Methods included from Singleton

included

Methods inherited from Ducktrap::Node

build, #run

Methods included from PrettyDump

#pretty_dump, #pretty_inspect

Instance Method Details

#call(input) ⇒ Evaluator

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.

Run ducktrap

Parameters:

  • input (Object)

Returns:



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

def call(input)
  Evaluator::Invalid.new(self, input)
end

#inverseDucktrap

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:



25
# File 'lib/ducktrap/node/invalid.rb', line 25

def inverse; self; end