From: Ken Bloom Date: 2007-08-19T11:40:10+09:00 Subject: Re: Array Difference On Fri, 17 Aug 2007 22:17:25 +0200, Robert Klemme wrote: > If you need more methods you can use a block: > > Prova = Struct.new :n do > def your_method(x) > x + n > end > end Thanks for the tip, I've tried to do things like class Foo < Struct.new(:a,:b) def method end end and while it works, it felt sorta hackish. --Ken -- Ken Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/