From: "助田 雅紀" Date: 1998-06-16T10:21:14+09:00 Subject: [ruby-list:8354] RE: question about arguments 助田です。 In [ruby-list:8353] question about arguments >しげまつ@はじめまして です はじめまして。 >さて、classを定義して引数を使いたいのですが、うまくわたりません。 1. test.rb 側で test1 = Conf.new test1.echo('a', 'b') とするか 2.conf.rb側で initialize を定義します class Conf def initialize(*args) @args = args end def echo for i in @args print i end ・・・(以下略) end end 1.か2.のどっちかでうまくいくと思います。 助田雅紀(masaki.suketa@tonen.co.jp)