split -> Array[permalink][rdoc]-
File.split(self.to_s) と同じです。
例require "pathname" pathname = Pathname("/path/to/sample") pathname.split # => [#<Pathname:/path/to>, #<Pathname:sample>][SEE_ALSO] File.split
このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
split -> Array[permalink][rdoc]File.split(self.to_s) と同じです。
例require "pathname"
pathname = Pathname("/path/to/sample")
pathname.split # => [#<Pathname:/path/to>, #<Pathname:sample>]
[SEE_ALSO] File.split