Module: Hashematics

Defined in:
lib/hashematics.rb,
lib/hashematics/id.rb,
lib/hashematics/key.rb,
lib/hashematics/type.rb,
lib/hashematics/graph.rb,
lib/hashematics/group.rb,
lib/hashematics/record.rb,
lib/hashematics/version.rb,
lib/hashematics/visitor.rb,
lib/hashematics/category.rb,
lib/hashematics/dictionary.rb,
lib/hashematics/record_set.rb,
lib/hashematics/configuration.rb,
lib/hashematics/object_interface.rb

Overview

Copyright © 2019-present, Blue Marble Payroll, LLC

This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.

Defined Under Namespace

Classes: Category, Configuration, Dictionary, Graph, Group, Id, Key, ObjectInterface, Record, RecordSet, Type, Visitor

Constant Summary collapse

VERSION =
'1.1.0'

Class Method Summary collapse

Class Method Details

.graph(config: {}, rows: []) ⇒ Object



31
32
33
34
35
# File 'lib/hashematics.rb', line 31

def graph(config: {}, rows: [])
  groups = Configuration.new(config).groups

  Graph.new(groups).add(rows)
end