Method: FakeFS::Pathname#split

Defined in:
lib/fakefs/pathname.rb

#splitObject

See File.split. Returns the #dirname and the #basename in an Array.



787
788
789
# File 'lib/fakefs/pathname.rb', line 787

def split
  File.split(@path).map { |f| self.class.new(f) }
end