aboutsummaryrefslogtreecommitdiffstats
path: root/ext/pathname/lib/pathname.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-13 13:49:24 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-13 13:49:24 +0000
commit87da8f0a292798126a40dfc3f06a4a8f98aa9073 (patch)
tree81ed5c7d95b740c44f65a6074c3f79b35a480646 /ext/pathname/lib/pathname.rb
parentd7d361a316ab554aaa2e773d2dee9644c81b2ff5 (diff)
downloadruby-87da8f0a292798126a40dfc3f06a4a8f98aa9073.tar.gz
* ext/pathname/pathname.c (path_truncate): Pathname#truncate translated
from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pathname/lib/pathname.rb')
-rw-r--r--ext/pathname/lib/pathname.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/pathname/lib/pathname.rb b/ext/pathname/lib/pathname.rb
index 035204e650..d1a7b5c856 100644
--- a/ext/pathname/lib/pathname.rb
+++ b/ext/pathname/lib/pathname.rb
@@ -512,9 +512,6 @@ end
class Pathname # * File *
- # See <tt>File.truncate</tt>. Truncate the file to +length+ bytes.
- def truncate(length) File.truncate(@path, length) end
-
# See <tt>File.utime</tt>. Update the access and modification times.
def utime(atime, mtime) File.utime(atime, mtime, @path) end