iex에서 @doc을 업데이트하면서 어떻게 보이는지 테스트합니다. 내가 다가올 문제는 업데이트 된 @doc 문서를보기 위해 iex를 종료해야한다는 것입니다. r()을 사용할 때 @doc 변수를 다시로드하는 방법이 있습니까?r (module_name)은 iex에 @doc를 다시로드하지 않습니다.
iex -S mix
iex> h Coordinate.island/1
## Examples
iex> {:ok, coord } = Cordinate.start_link
Cordinate.island(coord)
:falls_town
@doc이 (가) 대신 : falls_town 및 save file을 반환하도록 업데이트되었습니다.
iex> r(Coordinate)
iex> h Coordinate.island/1
# issue: still showing the old @doc example
## Examples
iex> {:ok, coord } = Cordinate.start_link
Cordinate.island(coord)
:falls_town # should be :none
'iex -S mix'에서'r (...) '대신'recompile()'을 실행 해보십시오. – Dogbert
덕분에 많은 덕을 보았습니다! 그래서 나는 현재의 Mix 어플리케이션을 다시 컴파일해야만 doc 변수를 다시로드 할 수 있습니다. –