module FeatureFlagMonitor::Refinements::HashExtensions refine Hash do def slice(*keys) keys.each_with_object({}) { |key, hash| hash[key] = self[key] } end def compact reject { |_, value| value.nil? } end def map_values(&block) keys.zip(values.map(&block)).to_h end end end