Class: Ducktrap::Node::Invalid
- Inherits:
-
Ducktrap::Node
- Object
- Ducktrap::Node
- Ducktrap::Node::Invalid
- Includes:
- Singleton
- Defined in:
- lib/ducktrap/node/invalid.rb
Overview
Noope node, returns input as output
Instance Method Summary collapse
-
#call(input) ⇒ Evaluator
private
Run ducktrap.
-
#inverse ⇒ Ducktrap
private
Return inverse ducktrap.
Methods included from Singleton
Methods inherited from Ducktrap::Node
Methods included from PrettyDump
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
15 16 17 |
# File 'lib/ducktrap/node/invalid.rb', line 15 def call(input) Evaluator::Invalid.new(self, input) end |
#inverse ⇒ Ducktrap
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
25 |
# File 'lib/ducktrap/node/invalid.rb', line 25 def inverse; self; end |