From: Zeekar Date: 2007-08-24T06:25:07+09:00 Subject: Re: Once more unto the breach: private class methods On Aug 23, 5:11 pm, "Robert Dober" wrote: > Sure, but clumsy, I do not know if it is worth it > > class Foo > class << self > private > def x; 60 end > end > attr_reader :x > helper = method(:x) > define_method :initialize do @x = helper.call end > end Well, that is an interesting approach. Thanks! It might be in the same category as using instance_eval or send, but at first blush it feels somewhat cleaner to me...