るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.114秒)

別のキーワード

  1. _builtin path
  2. pathname to_path
  3. _builtin absolute_path
  4. _builtin to_path
  5. cgi path_separator

ライブラリ

クラス

検索結果

Pathname#split -> Array (21160.0)

File.split(self.to_s) と同じです。

...File.split(self.to_s) と同じです。

//emlist[例][ruby]{
require
"pathname"

path
name = Pathname("/path/to/sample")
path
name.split # => [#<Pathname:/path/to>, #<Pathname:sample>]
//}

@
see File.split...