LoginSignup
2
2

More than 5 years have passed since last update.

プログラム内からrequire可能なライブラリの一覧を表示する

Posted at

プログラム内からrequire可能なライブラリの一覧を表示するだけのコードです.

puts `find #{$:*" "} -type f -name "*.rb"`

findコマンドを呼んでいるので,ない場合は適宜別のコマンドを指定してやってください.

参考:PerlとRubyでのロードできるライブラリを確認する方法 - Bouldering & Com.

2
2
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
2
2