Omit magic comment from YARD docs
-
22-06-2021 - |
Pergunta
I have the magic comment # -*- encoding : utf-8 -*-
at the top of every ruby file in my Rails app. Thing is, it shows up in my YARD docs in the Overview section of each class definition:
Overview
-*- encoding : utf-8 -*- The Book model contains a number of #etc
Is there a way I can omit it?
Solução
What if you remove this magic comment and format your file to UTF-8
?
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow