Sha256: ceacb215c27b9ce885d32aeaee532744e973e1b3cf47aff108fe6261f8422edb

Contents?: true

Size: 515 Bytes

Versions: 3

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

require_relative 'hash_pivot/version'
require_relative 'hash_pivot/table'
require 'hash_pivot/error/not_implemented_error'
module HashPivot
  # @param [Array<Hash>] data
  # @param [Array] group
  # @param [Object] pivot_in
  # @param [Array] pivot_kinds
  # @return [Hash]
  def self.pivot(data, group, pivot_in, pivot_kinds, repository: HashPivot::Repository::HashRepository, &block)
    Table.new(data, repository: repository).pivot(group, pivot_in, pivot_kinds, &block)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hash_pivot-0.3.0 lib/hash_pivot.rb
hash_pivot-0.2.0 lib/hash_pivot.rb
hash_pivot-0.1.0 lib/hash_pivot.rb