Class Neo4jr::ReturnableEvaluator
In: lib/neo4jr/returnable_evaluator.rb
Parent: Object

Methods

Constants

ALL = org.neo4j.graphdb.ReturnableEvaluator.ALL
ALL_BUT_START_NODE = org.neo4j.graphdb.ReturnableEvaluator.ALL_BUT_START_NODE

Public Class methods

Creates a new ReturnableEvaluator on the fly that delgates to the passed in block to use with the traverse method. The block should return either true or false See api.neo4j.org/current/org/neo4j/api/core/ReturnableEvaluator.html#isReturnableNode(org.neo4j.api.core.TraversalPosition)

Examples:

  Return.when do |current_position|
    current_position.depth > 3 && current_position.previousNode[:active] == false
  end

Public Instance methods

[Validate]