[#11156] How to delete methods from superclass? — Clemens Hintze <c.hintze@...>
Hello,
25 messages
1998/12/01
[#11157] Re: How to delete methods from superclass?
— matz@... (Yukihiro Matsumoto)
1998/12/01
Hi, Clemens.
[#11176] English List [Re: How to delete methods from superclass?]
— gotoken@... (GOTO Kentaro)
1998/12/01
In message "[ruby-list:11157] Re: How to delete methods from superclass?"
[#11177] Re: English List [Re: How to delete methods from superclass?]
— Clemens Hintze <c.hintze@...>
1998/12/01
Hello Gotoken,
[#11178] Re: English List [Re: How to delete methods from superclass?]
— "Kikutani, Makoto" <kikutani@...>
1998/12/01
Hi, Clemens.
[#11180] Re: English List [Re: How to delete methods from superclass?]
— matz@... (Yukihiro Matsumoto)
1998/12/02
Hi, All.
[#11183] Re: English List [Re: How to delete methods from superclass?]
— Kikutani Makoto <kikutani@...>
1998/12/02
On Wed, Dec 02, 1998 at 01:09:40PM +0900,
[#11165] usage of Time class — Noritsugu Nakamura <nnakamur@...>
6 messages
1998/12/01
[#11206] variable $0 — ISII takesi <isii@...>
石井です
8 messages
1998/12/03
[#11207] $LOAD_PATH — ISII takesi <isii@...>
石井です
14 messages
1998/12/03
[#11211] Re: $LOAD_PATH
— matz@... (Yukihiro Matsumoto)
1998/12/03
まつもと ゆきひろです
[#11227] Re: $LOAD_PATH
— ISII takesi <isii@...>
1998/12/06
石井です。
[#11219] クラス定数の継承 — Yoshiki WADA <wada@...>
和田といいます。
6 messages
1998/12/03
[#11225] ruby and ISP — Noritsugu Nakamura <nnakamur@...>
9 messages
1998/12/06
[#11245] undefined local variable or method `__END__' (Cygwin 版 1.1c9) — たむら けんいち <t9655832@...>
8 messages
1998/12/08
[#11246] Re: undefined local variable or method `__END__' (Cygwin 版 1.1c9)
— WATANABE Hirofumi <watanabe@...>
1998/12/08
わたなべです.
[#11250] Ruby 用語集 — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
25 messages
1998/12/08
[#11318] Re: Ruby 用語集
— Noritsugu Nakamura <nnakamur@...>
1998/12/14
[#11324] Re: Ruby 用語集
— KIMURA Koichi <kimura@...>
1998/12/14
[#11325] ruby on Win32 (Re: Ruby 用語集 )
— Koji Oda <oda@...1.qnes.nec.co.jp>
1998/12/15
小田@QNES です。
[#11257] comp.lang.* — Noritsugu Nakamura <nnakamur@...>
12 messages
1998/12/10
[#11265] Re: comp.lang.*
— "Kikutani, Makoto" <kikutani@...>
1998/12/10
「いしや株式会社」にはやられましたな〜。
[#11274] Re: comp.lang.*
— matz@... (Yukihiro Matsumoto)
1998/12/11
まつもと ゆきひろです
[#11258] require error? — OHARA Shigeki <os@...>
大原といいます。
12 messages
1998/12/10
[#11266] Re: require error?
— Yamada Kenji <kyamada@...>
1998/12/10
[#11269] 京都 (Re: [ruby-dev:3789] Re: List()) — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
21 messages
1998/12/11
[#11299] Re: 京都
— MAEDA Shugo <shugo@...>
1998/12/12
前田です。
[#11308] Re: 京都
— matz@... (Yukihiro Matsumoto)
1998/12/14
まつもと ゆきひろです
[#11312] Re: 京都
— Kazuhiro HIWADA <hiwada@...>
1998/12/14
ひわだです
[#11334] Re: 京都
— Motoyuki Kasahara <m-kasahr@...>
1998/12/15
笠原です。こんにちは。
[#11336] Re: 京都
— matz@... (Yukihiro Matsumoto)
1998/12/15
まつもと ゆきひろです
[#11276] pstore.rb — keiju@... (Keiju ISHITSUKA)
けいじゅ@日本ラショナルソフトウェアです.
5 messages
1998/12/11
[#11309] ext/ICQ 0.1 released — jkuro@...
黒田@大変な会社です。
6 messages
1998/12/14
[#11323] How to use GTK::timeout? — Takao KAWAMURA <kawamura@...>
gtkモジュールのtimeoutメソッドはどうやって使うのか教えて頂け
6 messages
1998/12/14
[#11337] Re: ruby on Win32 (Re: Ruby 用語集 ) — 助田 雅紀 <masaki.suketa@...>
助田です.
6 messages
1998/12/15
[#11348] sub or gsub の第2引数について — 石田 宏香 <h-ishida@...>
いしだです.
7 messages
1998/12/15
[#11349] Re: sub or gsub の第2引数について
— matz@... (Yukihiro Matsumoto)
1998/12/15
まつもと ゆきひろです
[#11364] Re: sub or gsub の第2引数について
— kjana@... (YANAGAWA Kazuhisa)
1998/12/15
In message <199812150559.OAA32348@picachu.netlab.co.jp>
[#11350] Re: ruby on Win32 (Re: Ruby 用語集 ) — 助田 雅紀 <masaki.suketa@...>
助田です.
9 messages
1998/12/15
[#11382] Hi. — kuma@... (Koji Kumagai)
5 messages
1998/12/17
[#11390] fep.rb — ttate@...
立石です。
6 messages
1998/12/18
[#11391] gtk — Takehama Hirohisa <thiro@...>
Ruby/Gtk に関して質問があります。
10 messages
1998/12/20
[#11392] Re: gtk
— "D.Kanda" <MAP2303@...>
1998/12/21
[#11395] Re: gtk
— Takehama Hirohisa <thiro@...>
1998/12/21
かんださん、ありがとうございます。
[#11393] mod_ruby — shugo@... (Shugo Maeda)
前田です。
28 messages
1998/12/21
[#11394] Re: mod_ruby
— matz@... (Yukihiro Matsumoto)
1998/12/21
まつもと ゆきひろです
[#11398] Re: mod_ruby
— shugo@... (Shugo Maeda)
1998/12/21
前田です。
[#11399] RE: mod_ruby
— OZAWA Sakuro <crouton@...>
1998/12/21
さくです。
[#11408] Re: Be port
— shugo@... (Shugo Maeda)
1998/12/22
前田です。
[#11409] Re: Be port
— matz@... (Yukihiro Matsumoto)
1998/12/22
まつもと ゆきひろです
[#11410] SMP (Re: Re: Be port)
— IWAMURO Motonori <iwa@...>
1998/12/22
岩室@富士通です。
[#11412] Re: SMP (Re: Re: Be port)
— ARIMA Yasuhiro <fit0298@...>
1998/12/22
Regard to "[ruby-list:11410] SMP (Re: Re: Be port)"
[#11404] djgpp 版と cygnusWin32 版の違いについて — 石田 宏香 <h-ishida@...>
いしだです.
6 messages
1998/12/22
[#11447] "\\1".upcase — gotoken@... (GOTO Kentaro)
ごとけんです
5 messages
1998/12/25
[#11454] Dir クラスの delete メソッド — URA Takefumi <tura@...>
はじめまして,浦と申します。よろしくお願いします。
5 messages
1998/12/25
[#11464] ruby and IDE — Noritsugu Nakamura <nnakamur@...>
18 messages
1998/12/27
[#11465] goto (Re: ruby and IDE)
— ttate@...
1998/12/27
立石です。
[#11466] Re: goto (Re: ruby and IDE)
— matz@... (Yukihiro Matsumoto)
1998/12/27
まつもと ゆきひろです
[#11472] call/cc (Re: goto)
— shugo@... (Shugo Maeda)
1998/12/28
前田です。
[#11473] call/cc (Re: goto)
— gotoken@... (GOTO Kentaro)
1998/12/28
ごとけんです
[#11478] Re: call/cc (Re: goto)
— matz@... (Yukihiro Matsumoto)
1998/12/28
まつもと ゆきひろです
[#11468] Ruby 1.2 FreeBSD port — Yasuhiro Fukuma <yasuf@...>
福間@福岡 です。
7 messages
1998/12/28
[ruby-list:11157] Re: How to delete methods from superclass?
From:
matz@... (Yukihiro Matsumoto)
Date:
1998-12-01 07:44:28 UTC
List:
ruby-list #11157
Hi, Clemens.
Is it OK for you to subscribe Japanese speaking mailing list whose
messages are mostly cryptic for you? :-)
As a maintainer of the list, I can remove you from the list, if you
desire. But if you want to learn Japanese through this list, that is
fine.
# Maybe English speaking list should be opened...
In message "[ruby-list:11156] How to delete methods from superclass?"
on 98/12/01, Clemens Hintze <c.hintze@gmx.net> writes:
|As I am very interested in Ruby, and there is no other mailing list than
|yours, I have to ask my question, which arise from time to time, here. I
|hope that's okay for you all. I don't want to bother matz with every
|simple question :-)
It's me answering anyway :-)
|So now I have the necessity to remove all methods, coming from IO
|without removing, of course, of LockedFile's own methods. I would like
|to know a "automatic way" to do that.
You don't have to remove methods. You just need to delegate them.
So called `the delegator pattern' can be used for that, I guess.
`lib/delegate.rb' is the library for that purpose. `lib/tempfile.rb'
is the example of using that library.
BTW, removing methods from superclass is also possible in Ruby, using
`undef' statement.
|But nevertheless I would propose to remove such requirements for
|derivation from IO. It would make things much easier. And it is not
|really necessary for a OOPS. The next module I want to translate is the
|module StringIO from Python. I would not like to derive it from class
|IO, as it has nothing to do with I/O. It only fakes things a little
|bit. But with the current scheme, I have to derive it from IO :-(
Use Module#instance_methods to list all the public method names which
the IO object responds. The delegation scheme in delegate.rb can be
used for that purpose too.
|PS: Sorry about my lousy English.
Mine is lousier, but much better than my German. :-<
Danke.
matz.