instance method Pathname#split

split -> Array[permalink][rdoc][edit]

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



require "pathname"

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

[SEE_ALSO] File.split