This Mixin is used to wrap Neo4j Java Nodes in Ruby objects.
It includes a number of mixins and forwards some methods to the raw Java node (Neo4j::Node) which includes the mixins below:
Mixins:
Mixins:
This class also includes the class mixin WillPaginate::Finders::Base, see github.com/mislav/will_paginate/wiki
# File lib/neo4j/node_mixin/node_mixin.rb, line 93 def _decl_rels_for(rel_type) self.class._decl_rels[rel_type] end
same as #_java_node - so that we can use the same method for both relationships and nodes
# File lib/neo4j/node_mixin/node_mixin.rb, line 80 def _java_entity @_java_node end
Returns the org.neo4j.graphdb.Node wrapped object
# File lib/neo4j/node_mixin/node_mixin.rb, line 75 def _java_node @_java_node end
Trigger rules. You don’t normally need to call this method (except in Migration) since it will be triggered automatically by the Neo4j::Rule::Rule
# File lib/neo4j/node_mixin/node_mixin.rb, line 88 def trigger_rules self.class.trigger_rules(self) end
Returns self. Implements the same method as the Neo4j::Node#wrapper - duck typing.
# File lib/neo4j/node_mixin/node_mixin.rb, line 98 def wrapper self end