class Neo4jWrapperValidator NODE_NAME_REGEX = /^\(([^\)]+)\)/ def call container, node node_name = node.match(NODE_NAME_REGEX)[1] unless class_present? container, node_name raise Geoff::MissingNodeDefinition, node_name end true end def class_present? container, node_name container.node_list.include? node_name end end