File.rb

This content was produced by an LLM and could include errors.

このスクリプトは特殊変数 __FILE__ の確認用です。実行に使われたソースファイルのパス(与えられたままの相対/絶対パス)を返し、IRB内では (irb) となります。File.dirname(__FILE__)__dir__ と組み合わせて使われることが多いです。

__FILE__
#=> "(irb)"

Ruby 4.0.6