class Dry::Logic::Rule::Interface

def name

def name
  if constant?
    "Constant"
  else
    arity_str =
      if variable_arity?
        "Variable#{arity.abs - 1}Arity"
      else
        "#{arity}Arity"
      end
    curried_str =
      if curried?
        "#{curried}Curried"
      else
        EMPTY_STRING
      end
    "#{arity_str}#{curried_str}"
  end
end