Ruby 2.1.0 リファレンスマニュアル > ライブラリ一覧 > shellライブラリ > Shellクラス > dirname

instance method Shell#dirname

dirname(filename) -> String[permalink][rdoc]

File クラスにある同名のクラスメソッドと同じです.

[PARAM] filename:
ファイル名を表す文字列を指定します。

[SEE_ALSO] File.dirname