diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-05 15:55:09 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-05 15:55:09 +0000 |
| commit | 2fa9eeb7023962772ca1e3ad9b26bdc13a6c185c (patch) | |
| tree | e2e9c28e8caf5535b343988de6fa23ed0f941695 /lib/pathname.rb | |
| parent | 2c677c1645fd28ba948d2b5d055cb126a870cdd2 (diff) | |
| download | ruby-2fa9eeb7023962772ca1e3ad9b26bdc13a6c185c.tar.gz ruby-2fa9eeb7023962772ca1e3ad9b26bdc13a6c185c.tar.xz ruby-2fa9eeb7023962772ca1e3ad9b26bdc13a6c185c.zip | |
* error.c (Init_Exception): remove Exception#to_str. [Ruby2]
* eval.c (error_print): should no call "to_str" anymore use
"message" method instead.
* io.c (rb_f_open): Kernel#open() calls "to_open" if the first
argument responds to it. [Ruby2]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pathname.rb')
| -rw-r--r-- | lib/pathname.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb index a6d059961..c87a6e91c 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -229,6 +229,10 @@ class Pathname "#<#{self.class}:#{@path}>" end + def to_open(*args) # :nodoc: + Kernel::open(@path, *args) + end + # # Returns clean pathname of +self+ with consecutive slashes and useless dots # removed. The filesystem is not accessed. |
