From: Phlip Date: 2009-04-26T06:35:02+09:00 Subject: Re: anonymous class, body defined by Proc.new vs. lambda Thomas Hafner wrote: > Ruby 1.9 complains > `initialize': wrong number of arguments (1 for 0) (ArgumentError) > from ./now.rb:21:in `new' > from ./now.rb:21:in `
' Just a guess does this fix it? f = lambda{|o| }; Class.new(&f) Something to do with lambdas defend their arity...