saturnflyer/characterize

View on GitHub
lib/characterize/feature_set.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

require "characterize/object_set"

module Characterize
  class FeatureSet
    def initialize
      @object_rules = {}
    end

    def add(object_name, **actions_hash)
      @object_rules[object_name] = ObjectSet.new(object_name, **actions_hash)
    end

    def dig(*args)
      @object_rules.dig(*args)
    end
  end
end