Method: Path#truncate

Defined in:
lib/path/file.rb

#truncate(length) ⇒ Object

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



91
92
93
# File 'lib/path/file.rb', line 91

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