class BehaviorTree::IncorrectTraversalStrategyError

Exception for when the children traversal strategy is incorrect.

Public Class Methods

new(value) click to toggle source
Calls superclass method
# File lib/behavior_tree/errors.rb, line 6
def initialize(value)
  err = [
    "Strategy for iterating children nodes must return an object which has an 'each' method.",
    "Attempted to use strategy: #{value}."
  ]
  super err.join ' '
end