__dir__

__dir__ รข string
Instance Public methods

Returns the canonicalized absolute path of the directory of the file from which this method is called. It means symlinks in the path is resolved. If __FILE__ is nil, it returns nil. The return value equals to File.dirname(File.realpath(__FILE__)).

doc_ruby_on_rails
2015-04-17 08:39:33
Comments
Leave a Comment

Please login to continue.