module TreeBranch
Copyright © 2018-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.
Copyright © 2018-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.
Copyright © 2018-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.
Copyright © 2018-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.
Top-level namespace of the library. The methods contained here should be considered the main public API.
Copyright © 2018-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.
Constants
- VERSION
Public Class Methods
# File lib/tree_branch/tree_branch.rb, line 22 def process(node: {}, context: {}, comparators: [], &block) ::TreeBranch::Processor.new .process( normalize_node(node), context: context, comparators: comparators, &block ) end
Private Class Methods
# File lib/tree_branch/tree_branch.rb, line 34 def normalize_node(node) node.is_a?(::TreeBranch::Node) ? node : ::TreeBranch::SimpleNode.make(node, nullable: false) end