3d820195a0
Most of the support here is in implementing how to correctly substitute multiple values in place of one, for composite caes. In composite cases, it's not sufficient to hash a label into a single integer value. Instead, we build an API that accepts a single label, and a list of columns that we'd like to map to. The algorithm used internally is very similar to #identify, with an additional bit shift and modulo to cycle the hash and ensure it doesn't exceed a max.
8 lines
187 B
Ruby
8 lines
187 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "cpk/author"
|
|
require_relative "cpk/book"
|
|
require_relative "cpk/order"
|
|
require_relative "cpk/review"
|
|
require_relative "cpk/order_agreement"
|