def partition_defaults(defaults)
      defaults.partition { |key, value| value.is_a?(Proc) }.map(&:to_h)
    end
def partition_defaults(defaults)
      defaults.partition { |key, value| value.is_a?(Proc) }.map(&:to_h)
    end
def partition_defaults ( defaults ) defaults . partition { | key , value | value . is_a? ( Proc ) } . map ( :to_h ) end
Internal: Splits static from dynamic arguments for runtime performance.
Internal : Splits static from dynamic arguments for runtime performance .