Method: FakeFS::Pathname#split

Defined in:
lib/fakefs/pathname.rb

#splitObject

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



771
772
773
# File 'lib/fakefs/pathname.rb', line 771

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