Sha256: 424003ec810d6c8bafa1df6b28c75fc64cec849d934190d3fcc92c73ad4e78ed
Contents?: true
Size: 359 Bytes
Versions: 2
Compression:
Stored size: 359 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geoff-0.0.3.beta | lib/geoff/neo4j_wrapper_validator.rb |
geoff-0.0.2.beta | lib/geoff/neo4j_wrapper_validator.rb |