class Tapioca::Dsl::Compilers::ActiveModelAttributes

def generate_method(klass, method, type)

def generate_method(klass, method, type)
  if method.end_with?("=")
    parameter = create_param("value", type: type)
    klass.create_method(
      method,
      parameters: [parameter],
      return_type: type,
    )
  else
    klass.create_method(method, return_type: type)
  end
end