# File lib/neo4jr/stop_evaluator.rb, line 17 def self.when(&block) instance = new instance.instance_variable_set(:@evaluator_block, block) instance.instance_eval do def isStopNode(position) @evaluator_block.call(position) end end instance end