Method: FakeFS::Pathname#truncate
- Defined in:
- lib/fakefs/pathname.rb
#truncate(length) ⇒ Object
See File.truncate. Truncate the file to length bytes.
755 756 757 |
# File 'lib/fakefs/pathname.rb', line 755 def truncate(length) File.truncate(@path, length) end |