From: Peter Pk Date: 2009-10-11T04:03:24+09:00 Subject: Re: Scope of constants in instance_eval I got 1.9 and am now running it :) thanks! pharrington wrote: > On Oct 10, 8:48�am, Peter Pk wrote: >> >> >> >> > change >> >>
>> > smtp: � f...@andersground.net >> > jabber: Sk...@jabber.ccc.de >> > gpg: � �533148E2 >> >> -- >> Posted viahttp://www.ruby-forum.com/. > > well in Ruby 1.8 something like this works (obviously not it all > cases, but you get the gist and can fix it as needed): > > Obj.new { puts "CONST = #{self.class.const_get("CONST")}" } > > And what do you mean by "waiting" until Ruby 1.9? 1.9.1's been > released and stable for the better part of this year now. -- Posted via http://www.ruby-forum.com/.