るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.022秒)
トップページ > バージョン:2.1.0[x] > クエリ:File[x] > クラス:Pathname[x] > クエリ:split[x]

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file lstat
  4. file path
  5. file size

ライブラリ

検索結果

Pathname#split -> Array (54457.0)

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

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

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

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

@see File.split...