Sha256: 5225f44a2a3eaf49a855f550f7345b0834c5608cc59a5476c75b2b3ceee867ba
Contents?: true
Size: 334 Bytes
Versions: 8
Compression:
Stored size: 334 Bytes
Contents
module Cadet class NodeRelationships include Enumerable def initialize(node, direction, type) @node = node @type = type @direction = direction end def each &block @node.each_relationship(@direction, @type, &block) end def ==(other) self.to_a == other.to_a end end end
Version data entries
8 entries across 8 versions & 1 rubygems