Method: FakeFS::Pathname#truncate

Defined in:
lib/fakefs/pathname.rb

#truncate(length) ⇒ Object

See File.truncate. Truncate the file to length bytes.



739
740
741
# File 'lib/fakefs/pathname.rb', line 739

def truncate(length)
  File.truncate(@path, length)
end