From: Charles Oliver Nutter Date: 2010-04-07T09:13:28+09:00 Subject: [ruby-core:29286] Re: Proposal: Module#thunk_method On Mon, Apr 5, 2010 at 8:15 PM, Austin Ziegler wrote: > I'm in favour of the proposal, but think that Module#memo_method or > even Module#memo_reader (a la attr_reader). memo_reader implies to me that there would be a memo_writer, so I think memo_method is the better choice (and I like it better than thunk_method). Of course a trivial impl of it would be: class Module def memo_method(name, value) define_method(:name) {value} end end ... but we'd want a superfast core version. - Charlie