class NeoScout::GDB_Neo4j::Scout

Public Class Methods

new(args={}) click to toggle source
Calls superclass method NeoScout::Scout::new
# File lib/neoscout/gdb_neo4j.rb, line 130
def initialize(args={})
  args[:typer] = Typer.new unless args[:typer]
  args[:verifier] = Verifier.new(args[:typer]) unless args[:verifier]
  args[:iterator] = ElementIterator.new unless args[:iterator]
  super args
end

Public Instance Methods

prep_counts(counts) click to toggle source
# File lib/neoscout/gdb_neo4j.rb, line 137
def prep_counts(counts)
  # Ensure __NOTYPE__entries always have a counts array
  counts.typed_nodes[typer.nil_type]
  counts.typed_edges[typer.nil_type]
  counts
end