module Phlex::Helpers
def mix(*args)
def mix(*args) ch_with_object({}) do |object, result| .merge!(object) do |_key, old, new| new Hash is_a?(Hash) ? mix(old, new) : new Array is_a?(Array) ? (old + new) : new String is_a?(String) ? "#{old} #{new}" : new .transform_keys! do |key| nd_with?("!") ? key.name.chop.to_sym : key