LoginSignup
1
1

More than 5 years have passed since last update.

IExで設定済みのaliasを一覧表示したい

Last updated at Posted at 2016-05-09

__ENV__.aliasesで設定済みのaliasを表示できます。

iex(1)> __ENV__.aliases
[]
iex(2)> alias Rumbl.Repo
nil
iex(3)> alias Rumbl.User
nil
iex(4)> __ENV__.aliases
[{Repo, Rumbl.Repo}, {User, Rumbl.User}]

もうちょいマシな方法がありそうなもんですが見つけられませんでした。
良い方法があったら教えてください。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1