__FILE__とは、自分のファイル名を示す。foo.rbの中では、__FILE__は'foo.rb'となる。FILE is the "relative" path to the file from the current execution directory.You must use File.expand_path(FILE) to get the absolute path

kiyo560808kiyo560808 のブックマーク 2011/02/23 16:07

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

What does __FILE__ mean in Ruby?

    Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives Teams Q&A for work Connect and share knowledge wi...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう