class Guacamole::GraphQuery
Public Instance Methods
==(*)
click to toggle source
@todo implement reasonable comparison
# File lib/guacamole/graph_query.rb, line 14 def ==(*) end
neighbors(start, edge_collection)
click to toggle source
# File lib/guacamole/graph_query.rb, line 6 def neighbors(start, edge_collection) options[:type] = :neighbors options[:start] = start options[:edge_collection] = edge_collection self end
Private Instance Methods
perfom_query(iterator)
click to toggle source
# File lib/guacamole/graph_query.rb, line 19 def perfom_query(iterator) enumerator = case options[:type] when :neighbors connection.neighbors(options[:start], edges: options[:edge_collection]) else [].to_enum end enumerator.each(&iterator) end